17 Q_PROPERTY( qreal extent READ extent
18 WRITE setExtent RESET resetExtent NOTIFY extentChanged )
20 Q_PROPERTY(
bool indeterminate READ isIndeterminate
21 WRITE setIndeterminate NOTIFY indeterminateChanged )
23 Q_PROPERTY( qreal origin READ origin
24 WRITE setOrigin RESET resetOrigin NOTIFY originChanged )
26 Q_PROPERTY( qreal value READ value WRITE setValue NOTIFY valueChanged )
27 Q_PROPERTY( qreal valueAsRatio READ valueAsRatio
28 WRITE setValueAsRatio NOTIFY valueChanged )
33 QSK_SUBCONTROLS( Groove, Fill )
41 bool isIndeterminate() const;
42 void setIndeterminate(
bool on = true );
45 void resetFillGradient();
48 void setExtent( qreal );
54 bool hasOrigin() const;
57 qreal valueAsRatio() const;
61 void setValue( qreal );
62 void setValueAsRatio( qreal );
63 void setOrigin( qreal );
66 void extentChanged( qreal );
67 void indeterminateChanged(
bool );
68 void valueChanged( qreal );
69 void originChanged( qreal );
72 void componentComplete() override;
73 void itemChange( ItemChange, const ItemChangeData& ) override;
76 void setValueInternal( qreal value );
80 std::unique_ptr< PrivateData > m_data;