32 Q_PROPERTY(
bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL REVISION(2, 1))
34 Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL REVISION(2, 2))
36 Q_PROPERTY(
bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION(2, 3))
37 Q_PROPERTY(
bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION(2, 3))
38 QML_NAMED_ELEMENT(SwipeView)
39 QML_ATTACHED(QQuickSwipeViewAttached)
40 QML_ADDED_IN_VERSION(2, 0)
43 explicit QQuickSwipeView(QQuickItem *parent =
nullptr);
45 static QQuickSwipeViewAttached *qmlAttachedProperties(QObject *object);
48 bool isInteractive()
const;
49 void setInteractive(
bool interactive);
52 Qt::Orientation orientation()
const;
53 void setOrientation(Qt::Orientation orientation);
56 bool isHorizontal()
const;
57 bool isVertical()
const;
61 Q_REVISION(2, 1)
void interactiveChanged();
63 Q_REVISION(2, 2)
void orientationChanged();
66 void componentComplete() override;
67 void geometryChange(
const QRectF &newGeometry,
const QRectF &oldGeometry) override;
68 void itemAdded(
int index, QQuickItem *item) override;
69 void itemMoved(
int index, QQuickItem *item) override;
70 void itemRemoved(
int index, QQuickItem *item) override;
72#if QT_CONFIG(accessibility)
73 QAccessible::Role accessibleRole()
const override;
77 Q_DISABLE_COPY(QQuickSwipeView)
78 Q_DECLARE_PRIVATE(QQuickSwipeView)
86 Q_PROPERTY(
int index READ index NOTIFY indexChanged FINAL)
87 Q_PROPERTY(
bool isCurrentItem READ isCurrentItem NOTIFY isCurrentItemChanged FINAL)
88 Q_PROPERTY(QQuickSwipeView *view READ view NOTIFY viewChanged FINAL)
90 Q_PROPERTY(
bool isNextItem READ isNextItem NOTIFY isNextItemChanged FINAL REVISION(2, 1))
91 Q_PROPERTY(
bool isPreviousItem READ isPreviousItem NOTIFY isPreviousItemChanged FINAL REVISION(2, 1))
94 explicit QQuickSwipeViewAttached(QObject *parent =
nullptr);
97 bool isCurrentItem()
const;
98 QQuickSwipeView *view()
const;
101 bool isNextItem()
const;
102 bool isPreviousItem()
const;
106 void isCurrentItemChanged();
109 void isNextItemChanged();
110 void isPreviousItemChanged();
113 Q_DISABLE_COPY(QQuickSwipeViewAttached)
114 Q_DECLARE_PRIVATE(QQuickSwipeViewAttached)