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 );
116 int borderWidth()
const;
121 void setOrigin(
double );
122 double origin()
const;
124 void setFillBrush(
const QBrush & );
125 QBrush fillBrush()
const;
127 void setAlarmBrush(
const QBrush & );
128 QBrush alarmBrush()
const;
130 void setAlarmLevel(
double );
131 double alarmLevel()
const;
133 void setAlarmEnabled(
bool );
134 bool alarmEnabled()
const;
140 void setPipeWidth(
int );
141 int pipeWidth()
const;
146 double value()
const;
152 const QwtScaleDraw *scaleDraw() const;
155 virtual
void setValue(
double );
158 virtual
void drawLiquid( QPainter *, const QRect & ) const;
159 virtual
void scaleChange() QWT_OVERRIDE;
161 virtual
void paintEvent( QPaintEvent * ) QWT_OVERRIDE;
162 virtual
void resizeEvent( QResizeEvent * ) QWT_OVERRIDE;
163 virtual
void changeEvent( QEvent * ) QWT_OVERRIDE;
165 QwtScaleDraw *scaleDraw();
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.
enum MQTTPropertyCodes value
An abstract base class for widgets having a scale.
QFlags< BorderFlag > BorderFlags
Border flags.
The origin is the minimum of the scale.
The origin is the maximum of the scale.
QwtColorMap is used to map values into colors.
A class for drawing scales.