15 Q_PROPERTY( qreal value READ value
16 WRITE setValue NOTIFY valueChanged USER
true )
18 Q_PROPERTY( qreal valueAsRatio READ valueAsRatio
19 WRITE setValueAsRatio NOTIFY valueChanged )
21 Q_PROPERTY( QString valueText READ valueText NOTIFY valueChanged )
23 Q_PROPERTY(
int decimals READ decimals
24 WRITE setDecimals NOTIFY decimalsChanged )
35 qreal valueAsRatio()
const;
36 using QskBoundedInput::valueAsRatio;
38 QString valueText()
const;
39 virtual QString textFromValue( qreal )
const;
41 void setDecimals(
int );
45 void setValue( qreal );
46 void setValueAsRatio( qreal );
47 void increment( qreal )
override;
50 void valueChanged( qreal );
51 void decimalsChanged(
int );
54 virtual qreal fixupValue( qreal )
const;
55 void alignInput()
override;
58 void setValueInternal( qreal );
61 std::unique_ptr< PrivateData > m_data;