改进代码

This commit is contained in:
feiyangqingyun
2021-10-08 10:52:05 +08:00
parent f6923b97a2
commit 200b7eeafb
171 changed files with 2894 additions and 1940 deletions

View File

@@ -17,14 +17,14 @@
\brief An abstract base class for slider widgets with a scale
A slider widget displays a value according to a scale.
The class is designed as a common super class for widgets like
The class is designed as a common super class for widgets like
QwtKnob, QwtDial and QwtSlider.
When the slider is nor readOnly() its value can be modified
by keyboard, mouse and wheel inputs.
When the slider is nor readOnly() its value can be modified
by keyboard, mouse and wheel inputs.
The range of the slider is divided into a number of steps from
which the value increments according to user inputs depend.
which the value increments according to user inputs depend.
Only for linear scales the number of steps correspond with
a fixed step size.
*/
@@ -67,7 +67,7 @@ public:
void setPageSteps( uint );
uint pageSteps() const;
void setStepAlignment( bool );
void setStepAlignment( bool );
bool stepAlignment() const;
void setTracking( bool );
@@ -80,15 +80,15 @@ public:
bool invertedControls() const;
public Q_SLOTS:
void setValue( double val );
void setValue( double value );
Q_SIGNALS:
/*!
\brief Notify a change of value.
When tracking is enabled (default setting),
this signal will be emitted every time the value changes.
When tracking is enabled (default setting),
this signal will be emitted every time the value changes.
\param value New value
@@ -146,14 +146,14 @@ protected:
*/
virtual double scrolledTo( const QPoint &pos ) const = 0;
void incrementValue( int numSteps );
void incrementValue( int stepCount );
virtual void scaleChange();
protected:
virtual void sliderChange();
double incrementedValue(
double incrementedValue(
double value, int stepCount ) const;
private: