summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-03-02 08:37:15 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-01 14:47:01 +0000
commit24807f57cd0f46573e8a588be90e10d4f7345fa9 (patch)
tree4787b0ef4d28d216b392cd491bdd5a8ee63787ac /tests/auto/widgets
parent438dbb8642fdb4c7fdd0324afeec505b717f0ade (diff)
Stabilize test QMenu::QTBUG_89082_actionTipsHide() on Windows
Move the cursor out of the way to prevent it from interfering. Amends 3f3d5e6716d9130776b3613ccbd5595de7d4af8d. Task-number: QTBUG-89082 Change-Id: I0efbe2b5618a04e92839083a1bd3383e05d6ff93 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit ba139603925453bf79994eca48b566d8f15b2af0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp b/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp
index ff0c4b489a..1ed94ed697 100644
--- a/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp
+++ b/tests/auto/widgets/widgets/qmenu/tst_qmenu.cpp
@@ -1370,6 +1370,9 @@ void tst_QMenu::QTBUG_89082_actionTipsHide()
widget.resize(300, 200);
centerOnScreen(&widget);
widget.show();
+#if QT_CONFIG(cursor)
+ QCursor::setPos(widget.screen()->availableGeometry().topLeft() + QPoint(10, 10));
+#endif
widget.activateWindow();
QVERIFY(QTest::qWaitForWindowExposed(&widget));
menu->popup(widget.geometry().topRight() + QPoint(50, 0));