53 Q_PROPERTY( Qt::Orientation orientation
54 READ orientation WRITE setOrientation )
56 READ scalePosition WRITE setScalePosition )
57 Q_PROPERTY(
OriginMode originMode READ originMode WRITE setOriginMode )
59 Q_PROPERTY(
bool alarmEnabled READ alarmEnabled WRITE setAlarmEnabled )
60 Q_PROPERTY(
double alarmLevel READ alarmLevel WRITE setAlarmLevel )
61 Q_PROPERTY(
double origin READ origin WRITE setOrigin )
62 Q_PROPERTY(
int spacing READ spacing WRITE setSpacing )
63 Q_PROPERTY(
int borderWidth READ borderWidth WRITE setBorderWidth )
64 Q_PROPERTY(
int pipeWidth READ pipeWidth WRITE setPipeWidth )
65 Q_PROPERTY(
double value READ value WRITE setValue USER true )
103 explicit QwtThermo( QWidget *parent = NULL );
106 void setOrientation( Qt::Orientation );
107 Qt::Orientation orientation()
const;
112 void setSpacing(
int );
115 void setBorderWidth(
int w );
116 int borderWidth()
const;
121 void setOrigin(
double );
122 double origin()
const;
124 void setFillBrush(
const QBrush &b );
125 QBrush fillBrush()
const;
127 void setAlarmBrush(
const QBrush &b );
128 QBrush alarmBrush()
const;
130 void setAlarmLevel(
double v );
131 double alarmLevel()
const;
133 void setAlarmEnabled(
bool tf );
134 bool alarmEnabled()
const;
140 void setPipeWidth(
int w );
141 int pipeWidth()
const;
146 double value()
const;
148 virtual QSize sizeHint()
const;
149 virtual QSize minimumSizeHint()
const;
155 virtual void setValue(
double val );
158 virtual void drawLiquid( QPainter *,
const QRect & )
const;
161 virtual void paintEvent( QPaintEvent * );
162 virtual void resizeEvent( QResizeEvent * );
167 QRect pipeRect()
const;
168 QRect fillRect(
const QRect & )
const;
169 QRect alarmRect(
const QRect & )
const;
172 void layoutThermo(
bool );
The scale is right of a vertical or below of a horizontal slider.
An abstract base class for widgets having a scale.
QFlags< BorderFlag > BorderFlags
Border flags.
virtual void scaleChange()
Notify changed scale.
The origin is the minimum of the scale.
TFSIMD_FORCE_INLINE void setValue(const tfScalar &x, const tfScalar &y, const tfScalar &z)
The origin is the maximum of the scale.
QwtColorMap is used to map values into colors.
virtual void changeEvent(QEvent *)
A class for drawing scales.