diff options
Diffstat (limited to 'src/quicktemplates2/qquickswipedelegate_p.h')
-rw-r--r-- | src/quicktemplates2/qquickswipedelegate_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickswipedelegate_p.h b/src/quicktemplates2/qquickswipedelegate_p.h index cb3978ad..36f82276 100644 --- a/src/quicktemplates2/qquickswipedelegate_p.h +++ b/src/quicktemplates2/qquickswipedelegate_p.h @@ -67,6 +67,9 @@ public: QQuickSwipe *swipe() const; + enum Side { Left = 1, Right = -1 }; + Q_ENUM(Side) + static QQuickSwipeDelegateAttached *qmlAttachedProperties(QObject *object); protected: @@ -112,5 +115,6 @@ QT_END_NAMESPACE QML_DECLARE_TYPE(QQuickSwipeDelegate) QML_DECLARE_TYPEINFO(QQuickSwipeDelegate, QML_HAS_ATTACHED_PROPERTIES) +Q_DECLARE_METATYPE(QQuickSwipeDelegate::Side) #endif // QQUICKSWIPEDELEGATE_P_H |