From 49590bd5997bb2942bc2ad183f06b99429025cdc Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 24 Aug 2020 11:29:34 +0200 Subject: tst_qquickpopup: fix setOverlayParentToNull test Use the fix from 1d06eb3f8215b67c5061ee3a076df405724ff7ee. Fixes: QTBUG-86212 Change-Id: I407c56741806340235da81cca943b50cc6e92dd2 Reviewed-by: Fabian Kosmale (cherry picked from commit 4d76bce10d8f71dd3dc79e30ff947afe866c5041) --- tests/auto/qquickpopup/tst_qquickpopup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp index 22e6df5d..41955d7d 100644 --- a/tests/auto/qquickpopup/tst_qquickpopup.cpp +++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp @@ -1311,6 +1311,8 @@ void tst_QQuickPopup::setOverlayParentToNull() QVERIFY2(helper.ready, helper.failureMessage()); QQuickWindow *window = helper.window; + centerOnScreen(window); + moveMouseAway(window); window->show(); #ifdef QT_DEBUG QTest::ignoreMessage(QtWarningMsg, "ShaderEffectSource: 'recursive' must be set to true when rendering recursively."); -- cgit v1.2.1