diff options
Diffstat (limited to 'src/quicktemplates/qquickswipeview_p.h')
-rw-r--r-- | src/quicktemplates/qquickswipeview_p.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/quicktemplates/qquickswipeview_p.h b/src/quicktemplates/qquickswipeview_p.h index 84e4b51b2a..758de23ffe 100644 --- a/src/quicktemplates/qquickswipeview_p.h +++ b/src/quicktemplates/qquickswipeview_p.h @@ -17,12 +17,14 @@ #include <QtQuickTemplates2/private/qquickcontainer_p.h> +QT_REQUIRE_CONFIG(quicktemplates2_container); + QT_BEGIN_NAMESPACE class QQuickSwipeViewAttached; class QQuickSwipeViewPrivate; -class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeView : public QQuickContainer +class Q_QUICKTEMPLATES2_EXPORT QQuickSwipeView : public QQuickContainer { Q_OBJECT // 2.1 (Qt 5.8) @@ -60,6 +62,7 @@ Q_SIGNALS: Q_REVISION(2, 2) void orientationChanged(); protected: + void componentComplete() override; void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override; void itemAdded(int index, QQuickItem *item) override; void itemMoved(int index, QQuickItem *item) override; @@ -76,7 +79,7 @@ private: class QQuickSwipeViewAttachedPrivate; -class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeViewAttached : public QObject +class Q_QUICKTEMPLATES2_EXPORT QQuickSwipeViewAttached : public QObject { Q_OBJECT Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL) @@ -112,6 +115,4 @@ private: QT_END_NAMESPACE -QML_DECLARE_TYPE(QQuickSwipeView) - #endif // QQUICKSWIPEVIEW_P_H |