tst_QMenu::transientParent remove QApplicationPrivate::setActiveWindow

2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I4b1938d082eeedb7e40e97d4b0df76aee5847dc2
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Frédéric Lefebvre 2024-02-09 15:21:00 +01:00
parent c9a4557e85
commit 7a55965e71
1 changed files with 0 additions and 1 deletions

View File

@ -1612,7 +1612,6 @@ void tst_QMenu::transientParent()
QWindow *topLevel = window.windowHandle(); QWindow *topLevel = window.windowHandle();
QVERIFY(topLevel); QVERIFY(topLevel);
QApplicationPrivate::setActiveWindow(&window);
window.setFocus(); window.setFocus();
QVERIFY(QTest::qWaitForWindowActive(&window)); QVERIFY(QTest::qWaitForWindowActive(&window));
QVERIFY(window.hasFocus()); QVERIFY(window.hasFocus());