diff options
author | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2023-04-13 10:51:13 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp> | 2023-04-13 12:07:51 +0900 |
commit | 922c89cf955f5703fca015f25e681cbcc783d580 (patch) | |
tree | e82268764154f93bba0d4be0d921b21775ce7494 /src/quicktestutils/quick/viewtestutils.cpp | |
parent | e774a88e5193ee209b5bd00d216d979137f1303b (diff) | |
download | qtdeclarative-922c89cf955f5703fca015f25e681cbcc783d580.tar.gz |
Fix build with -no-feature-listview and itemviews
tested with each/all of below
-no-feature-gridview
-no-feature-listview
-no-feature-pathview
-no-feature-tableview
-no-feature-treeview
Pick-to: 6.5
Change-Id: I90cc7bc45bb9065000bc0fc7eeb8e80f02acb0d0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/quicktestutils/quick/viewtestutils.cpp')
-rw-r--r-- | src/quicktestutils/quick/viewtestutils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quicktestutils/quick/viewtestutils.cpp b/src/quicktestutils/quick/viewtestutils.cpp index e8e5847548..79c34168e5 100644 --- a/src/quicktestutils/quick/viewtestutils.cpp +++ b/src/quicktestutils/quick/viewtestutils.cpp @@ -4,6 +4,7 @@ #include "viewtestutils_p.h" #include <QtCore/QRandomGenerator> +#include <QtCore/QTimer> #include <QtQuick/QQuickView> #include <QtQuick/QQuickView> #include <QtGui/QScreen> @@ -12,7 +13,9 @@ #include <QtTest/QTest> #include <QtQuick/private/qquickdeliveryagent_p_p.h> +#if QT_CONFIG(quick_itemview) #include <QtQuick/private/qquickitemview_p_p.h> +#endif #include <QtQuick/private/qquickwindow_p.h> #include <QtQuickTestUtils/private/visualtestutils_p.h> @@ -391,6 +394,7 @@ void QQuickViewTestUtils::StressTestModel::updateModel() } } +#if QT_CONFIG(quick_itemview) bool QQuickViewTestUtils::testVisibleItems(const QQuickItemViewPrivate *priv, bool *nonUnique, FxViewItem **failItem, int *expectedIdx) { QHash<QQuickItem*, int> uniqueItems; @@ -427,6 +431,7 @@ bool QQuickViewTestUtils::testVisibleItems(const QQuickItemViewPrivate *priv, bo return true; } +#endif namespace QQuickTouchUtils { |