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;
109 void setScalePosition( ScalePosition );
110 ScalePosition scalePosition()
const;
112 void setSpacing(
int );
115 void setBorderWidth(
int );
116 int borderWidth()
const;
118 void setOriginMode( OriginMode );
119 OriginMode originMode()
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;
143 void setRangeFlags( QwtInterval::BorderFlags );
144 QwtInterval::BorderFlags rangeFlags()
const;
146 double value()
const;
155 virtual
void setValue(
double );
158 virtual
void drawLiquid( QPainter*, const QRect& ) const;
167 QRect pipeRect() const;
168 QRect fillRect( const QRect& ) const;
169 QRect alarmRect( const QRect& ) const;
172 void layoutThermo(
bool );