15 Q_PROPERTY(
bool isPressed READ isPressed NOTIFY pressedChanged )
17 Q_PROPERTY( Qt::Orientation orientation READ orientation
18 WRITE setOrientation NOTIFY orientationChanged )
20 Q_PROPERTY(
bool tracking READ isTracking
21 WRITE setTracking NOTIFY trackingChanged )
23 Q_PROPERTY( qreal handlePosition READ handlePosition )
28 QSK_SUBCONTROLS( Panel, Groove, Fill, Scale, Handle,
29 GrooveStopIndicators, FillStopIndicators )
32 explicit QskSlider( QQuickItem* parent =
nullptr );
33 explicit QskSlider( Qt::Orientation, QQuickItem* parent =
nullptr );
37 bool isPressed()
const;
39 void setOrientation( Qt::Orientation );
40 Qt::Orientation orientation()
const;
42 void setTracking(
bool );
43 bool isTracking()
const;
45 qreal handlePosition()
const;
50 void pressedChanged(
bool );
51 void orientationChanged( Qt::Orientation );
52 void trackingChanged(
bool );
55 void mousePressEvent( QMouseEvent* )
override;
56 void mouseMoveEvent( QMouseEvent* )
override;
57 void mouseReleaseEvent( QMouseEvent* )
override;
59 QSizeF handleSize()
const;
60 QRectF handleRect()
const;
69 std::unique_ptr< PrivateData > m_data;