aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Vuolle <[email protected]>2025-04-25 10:25:25 +0300
committerJuha Vuolle <[email protected]>2025-04-28 15:14:24 +0300
commitde6036600b9f3ac62d77a68c70ef63052fab76cb (patch)
tree26e3c98f7f5cda095720ed35fc661dc427521d0a
parentc4bf70e06c0e6b40b26cdfd94cf17d21cb70a770 (diff)
Fix tst_qquickapplicationwindow compilation when hover is disabled
Task-number: QTBUG-136101 Pick-to: 6.9 6.8 Change-Id: I38ffaa60219cb4432ca7444d8b560a9daa22c935 Reviewed-by: Oliver Eftevaag <[email protected]>
-rw-r--r--tests/auto/quickcontrols/qquickapplicationwindow/tst_qquickapplicationwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/qquickapplicationwindow/tst_qquickapplicationwindow.cpp b/tests/auto/quickcontrols/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
index b5e077dbd2..7e71076cca 100644
--- a/tests/auto/quickcontrols/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
+++ b/tests/auto/quickcontrols/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
@@ -59,7 +59,9 @@ private slots:
void backgroundSize();
void explicitBackgroundSizeBinding();
void safeArea();
+#if QT_CONFIG(quicktemplates2_hover)
void hoverInBackground();
+#endif
};
tst_QQuickApplicationWindow::tst_QQuickApplicationWindow()
@@ -1091,6 +1093,7 @@ void tst_QQuickApplicationWindow::safeArea()
}
+#if QT_CONFIG(quicktemplates2_hover)
void tst_QQuickApplicationWindow::hoverInBackground()
{
QQuickControlsApplicationHelper helper(this, QLatin1String("hoverInBackground.qml"));
@@ -1111,6 +1114,7 @@ void tst_QQuickApplicationWindow::hoverInBackground()
pointLerper.move(mapCenterToWindow(button), 2);
QCOMPARE(button->isHovered(), QQuickControlPrivate::calcHoverEnabled(window->contentItem()));
}
+#endif // QT_CONFIG(quicktemplates2_hover)
QTEST_MAIN(tst_QQuickApplicationWindow)