aboutsummaryrefslogtreecommitdiffstats
path: root/src/quicktemplates2/qquickswipeview_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quicktemplates2/qquickswipeview_p.h')
-rw-r--r--src/quicktemplates2/qquickswipeview_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/quicktemplates2/qquickswipeview_p.h b/src/quicktemplates2/qquickswipeview_p.h
index 832cde37..e07ed7f0 100644
--- a/src/quicktemplates2/qquickswipeview_p.h
+++ b/src/quicktemplates2/qquickswipeview_p.h
@@ -59,6 +59,7 @@ class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeView : public QQuickContainer
{
Q_OBJECT
Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL REVISION 1)
+ Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL REVISION 2)
public:
explicit QQuickSwipeView(QQuickItem *parent = nullptr);
@@ -66,16 +67,20 @@ public:
bool isInteractive() const;
void setInteractive(bool interactive);
+ Qt::Orientation orientation() const;
+ void setOrientation(Qt::Orientation orientation);
+
static QQuickSwipeViewAttached *qmlAttachedProperties(QObject *object);
Q_SIGNALS:
Q_REVISION(1) void interactiveChanged();
+ Q_REVISION(2) void orientationChanged();
protected:
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
void itemAdded(int index, QQuickItem *item) override;
-#ifndef QT_NO_ACCESSIBILITY
+#if QT_CONFIG(accessibility)
QAccessible::Role accessibleRole() const override;
#endif