17 Q_PROPERTY( qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged )
18 Q_PROPERTY( uint pageSteps READ pageSteps WRITE setPageSteps NOTIFY pageStepsChanged )
20 Q_PROPERTY(
bool snap READ snap WRITE setSnap NOTIFY snapChanged )
21 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly NOTIFY readOnlyChanged )
26 QSK_STATES( ReadOnly )
31 qreal stepSize()
const;
32 qreal pageSize()
const;
33 uint pageSteps()
const;
38 void setReadOnly(
bool );
39 bool isReadOnly()
const;
42 void setStepSize( qreal );
43 void setPageSteps( uint );
50 virtual void increment( qreal offset ) = 0;
53 void stepSizeChanged( qreal );
54 void pageStepsChanged( qreal );
55 void snapChanged(
bool );
57 void readOnlyChanged(
bool );
60 void keyPressEvent( QKeyEvent* )
override;
62#ifndef QT_NO_WHEELEVENT
63 void wheelEvent( QWheelEvent* )
override;
66 void componentComplete()
override;
67 virtual void alignInput();
69 qreal alignedValue( qreal )
const;
72 qreal incrementForKey(
const QKeyEvent* )
const;
76 std::unique_ptr< PrivateData > m_data;