summaryrefslogtreecommitdiff
path: root/src/quicktestutils/quick/viewtestutils.cpp
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2023-04-13 10:51:13 +0900
committerTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2023-04-13 12:07:51 +0900
commit922c89cf955f5703fca015f25e681cbcc783d580 (patch)
treee82268764154f93bba0d4be0d921b21775ce7494 /src/quicktestutils/quick/viewtestutils.cpp
parente774a88e5193ee209b5bd00d216d979137f1303b (diff)
downloadqtdeclarative-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.cpp5
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 {