69 Q_PROPERTY(
double value READ value WRITE setValue NOTIFY valueChanged USER
true )
70 Q_PROPERTY(
double minimum READ minimum WRITE setMinimum )
71 Q_PROPERTY(
double maximum READ maximum WRITE setMaximum )
72 Q_PROPERTY(
double singleStep READ singleStep WRITE setSingleStep )
74 Q_PROPERTY(
int numButtons READ numButtons WRITE setNumButtons )
75 Q_PROPERTY(
int stepButton1 READ stepButton1 WRITE setStepButton1 )
76 Q_PROPERTY(
int stepButton2 READ stepButton2 WRITE setStepButton2 )
77 Q_PROPERTY(
int stepButton3 READ stepButton3 WRITE setStepButton3 )
79 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly )
80 Q_PROPERTY(
bool wrapping READ wrapping WRITE setWrapping )
102 void setValid(
bool );
103 bool isValid()
const;
105 void setWrapping(
bool );
106 bool wrapping()
const;
108 bool isReadOnly()
const;
109 void setReadOnly(
bool );
111 void setNumButtons(
int );
112 int numButtons()
const;
117 virtual QSize sizeHint() const QWT_OVERRIDE;
119 double singleStep() const;
120 void setSingleStep(
double stepSize );
122 void setRange(
double min,
double max );
124 double minimum() const;
125 void setMinimum(
double );
127 double maximum() const;
128 void setMaximum(
double );
130 void setStepButton1(
int nSteps );
131 int stepButton1() const;
133 void setStepButton2(
int nSteps );
134 int stepButton2() const;
136 void setStepButton3(
int nSteps );
137 int stepButton3() const;
139 double value() const;
142 void setValue(
double );
150 void buttonReleased (
double value );
156 void valueChanged (
double value );
159 virtual
bool event( QEvent* ) QWT_OVERRIDE;
160 virtual
void wheelEvent( QWheelEvent* ) QWT_OVERRIDE;
161 virtual
void keyPressEvent( QKeyEvent* ) QWT_OVERRIDE;
169 void incrementValue(
int numSteps );
171 void updateButtons();
172 void showNumber(
double );