16 Q_PROPERTY( Qt::Orientation orientation READ orientation
17 WRITE setOrientation NOTIFY orientationChanged )
19 Q_PROPERTY(
bool inverted READ isInverted
20 WRITE setInverted NOTIFY invertedChanged )
22 Q_PROPERTY(
bool tracking READ isTracking
23 WRITE setTracking NOTIFY trackingChanged )
25 Q_PROPERTY( qreal origin READ origin
26 WRITE setOrigin RESET resetOrigin NOTIFY originChanged )
31 QSK_SUBCONTROLS( Panel, Groove, Fill, Scale, Tick, Handle )
34 explicit QskSlider( QQuickItem* parent =
nullptr );
35 explicit QskSlider( Qt::Orientation, QQuickItem* parent =
nullptr );
39 void setOrientation( Qt::Orientation );
40 Qt::Orientation orientation()
const;
42 void setInverted(
bool );
43 bool isInverted()
const;
47 bool hasOrigin()
const;
49 void setTracking(
bool );
50 bool isTracking()
const;
52 qreal handlePosition()
const;
57 void setOrigin( qreal );
60 void orientationChanged( Qt::Orientation );
61 void invertedChanged(
bool );
62 void trackingChanged(
bool );
63 void originChanged( qreal );
66 void mousePressEvent( QMouseEvent* )
override;
67 void mouseMoveEvent( QMouseEvent* )
override;
68 void mouseReleaseEvent( QMouseEvent* )
override;
70 void keyPressEvent( QKeyEvent* )
override;
73 void componentComplete()
override;
80 std::unique_ptr< PrivateData > m_data;