30 Q_PROPERTY(qreal size READ size WRITE setSize NOTIFY sizeChanged FINAL)
31 Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
32 Q_PROPERTY(
bool active READ isActive WRITE setActive NOTIFY activeChanged FINAL)
33 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
35 Q_PROPERTY(
bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION(2, 3))
36 Q_PROPERTY(
bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION(2, 3))
38 Q_PROPERTY(qreal minimumSize READ minimumSize WRITE setMinimumSize NOTIFY minimumSizeChanged FINAL REVISION(2, 4))
39 Q_PROPERTY(qreal visualSize READ visualSize NOTIFY visualSizeChanged FINAL REVISION(2, 4))
40 Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL REVISION(2, 4))
41 QML_NAMED_ELEMENT(ScrollIndicator)
42 QML_ATTACHED(QQuickScrollIndicatorAttached)
43 QML_ADDED_IN_VERSION(2, 0)
46 explicit QQuickScrollIndicator(QQuickItem *parent =
nullptr);
48 static QQuickScrollIndicatorAttached *qmlAttachedProperties(QObject *object);
51 qreal position()
const;
53 bool isActive()
const;
54 void setActive(
bool active);
56 Qt::Orientation orientation()
const;
57 void setOrientation(Qt::Orientation orientation);
60 bool isHorizontal()
const;
61 bool isVertical()
const;
64 qreal minimumSize()
const;
65 void setMinimumSize(qreal minimumSize);
67 qreal visualSize()
const;
68 qreal visualPosition()
const;
71 void setSize(qreal size);
72 void setPosition(qreal position);
76 void positionChanged();
78 void orientationChanged();
80 Q_REVISION(2, 4)
void minimumSizeChanged();
81 Q_REVISION(2, 4)
void visualSizeChanged();
82 Q_REVISION(2, 4)
void visualPositionChanged();
85#if QT_CONFIG(quicktemplates2_multitouch)
86 void touchEvent(QTouchEvent *event) override;
89#if QT_CONFIG(accessibility)
90 QAccessible::Role accessibleRole()
const override;
94 Q_DISABLE_COPY(QQuickScrollIndicator)
95 Q_DECLARE_PRIVATE(QQuickScrollIndicator)
103 Q_PROPERTY(QQuickScrollIndicator *horizontal READ horizontal WRITE setHorizontal NOTIFY horizontalChanged FINAL)
104 Q_PROPERTY(QQuickScrollIndicator *vertical READ vertical WRITE setVertical NOTIFY verticalChanged FINAL)
107 explicit QQuickScrollIndicatorAttached(QObject *parent =
nullptr);
108 ~QQuickScrollIndicatorAttached();
110 QQuickScrollIndicator *horizontal()
const;
111 void setHorizontal(QQuickScrollIndicator *horizontal);
113 QQuickScrollIndicator *vertical()
const;
114 void setVertical(QQuickScrollIndicator *vertical);
117 void horizontalChanged();
118 void verticalChanged();
121 Q_DISABLE_COPY(QQuickScrollIndicatorAttached)
122 Q_DECLARE_PRIVATE(QQuickScrollIndicatorAttached)