改进代码
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
A counter has a range from a minimum value to a maximum value
|
||||
and a step size. When the wrapping property is set
|
||||
the counter is circular.
|
||||
|
||||
The number of steps by which a button increments or decrements the value
|
||||
can be specified using setIncSteps(). The number of buttons can be
|
||||
|
||||
The number of steps by which a button increments or decrements the value
|
||||
can be specified using setIncSteps(). The number of buttons can be
|
||||
changed with setNumButtons().
|
||||
|
||||
Example:
|
||||
@@ -91,24 +91,24 @@ public:
|
||||
bool isReadOnly() const;
|
||||
void setReadOnly( bool );
|
||||
|
||||
void setNumButtons( int n );
|
||||
void setNumButtons( int );
|
||||
int numButtons() const;
|
||||
|
||||
void setIncSteps( QwtCounter::Button btn, int nSteps );
|
||||
int incSteps( QwtCounter::Button btn ) const;
|
||||
void setIncSteps( QwtCounter::Button, int numSteps );
|
||||
int incSteps( QwtCounter::Button ) const;
|
||||
|
||||
virtual QSize sizeHint() const;
|
||||
|
||||
double singleStep() const;
|
||||
void setSingleStep( double s );
|
||||
void setSingleStep( double stepSize );
|
||||
|
||||
void setRange( double min, double max );
|
||||
|
||||
|
||||
double minimum() const;
|
||||
void setMinimum( double min );
|
||||
void setMinimum( double );
|
||||
|
||||
double maximum() const;
|
||||
void setMaximum( double max );
|
||||
void setMaximum( double );
|
||||
|
||||
void setStepButton1( int nSteps );
|
||||
int stepButton1() const;
|
||||
|
||||
Reference in New Issue
Block a user