diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-08-22 11:32:49 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-08-30 05:07:47 +0000 |
commit | 0cf0729dd0a4d958fafd3acd6c6b8100213370fd (patch) | |
tree | ee3a6769b8270983f8af672bfc102e9895c84505 | |
parent | 54f31a64d01a138e72f79b9585cb90004bbe1e4a (diff) |
Fix build with -no-feature-quick-path
Change-Id: I7ed2c190ffe9ddd83aeee28de3c5d87269ec53ee
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
-rw-r--r-- | src/quick/items/qquickitemsmodule.cpp | 2 | ||||
-rw-r--r-- | src/src.pro | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/quick/items/qquickitemsmodule.cpp b/src/quick/items/qquickitemsmodule.cpp index 3927a440e8..f2098f6732 100644 --- a/src/quick/items/qquickitemsmodule.cpp +++ b/src/quick/items/qquickitemsmodule.cpp @@ -480,6 +480,8 @@ static void qt_quickitems_defineModule(const char *uri, int major, int minor) #if QT_CONFIG(quick_itemview) qmlRegisterUncreatableType<QQuickItemView, 13>(uri, 2, 13, itemViewName, itemViewMessage); +#endif +#if QT_CONFIG(quick_pathview) qmlRegisterType<QQuickPathView, 13>(uri, 2, 13, "PathView"); #endif #if QT_CONFIG(quick_gridview) diff --git a/src/src.pro b/src/src.pro index b1e0a72c9f..98e1779dc5 100644 --- a/src/src.pro +++ b/src/src.pro @@ -11,9 +11,10 @@ qtConfig(qml-worker-script): \ SUBDIRS += qmlworkerscript qtHaveModule(gui):qtConfig(qml-animation) { - SUBDIRS += \ - quick \ - quickshapes + SUBDIRS += quick + + qtConfig(quick-path): \ + SUBDIRS += quickshapes qtConfig(testlib): \ SUBDIRS += qmltest |