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>
This commit is contained in:
parent
438dbb8642
commit
24807f57cd
@ -1370,6 +1370,9 @@ void tst_QMenu::QTBUG_89082_actionTipsHide()
|
|||||||
widget.resize(300, 200);
|
widget.resize(300, 200);
|
||||||
centerOnScreen(&widget);
|
centerOnScreen(&widget);
|
||||||
widget.show();
|
widget.show();
|
||||||
|
#if QT_CONFIG(cursor)
|
||||||
|
QCursor::setPos(widget.screen()->availableGeometry().topLeft() + QPoint(10, 10));
|
||||||
|
#endif
|
||||||
widget.activateWindow();
|
widget.activateWindow();
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&widget));
|
QVERIFY(QTest::qWaitForWindowExposed(&widget));
|
||||||
menu->popup(widget.geometry().topRight() + QPoint(50, 0));
|
menu->popup(widget.geometry().topRight() + QPoint(50, 0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user