mirror of https://github.com/qt/qtbase.git
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:
parent
c9a4557e85
commit
7a55965e71
|
@ -1612,7 +1612,6 @@ void tst_QMenu::transientParent()
|
|||
QWindow *topLevel = window.windowHandle();
|
||||
QVERIFY(topLevel);
|
||||
|
||||
QApplicationPrivate::setActiveWindow(&window);
|
||||
window.setFocus();
|
||||
QVERIFY(QTest::qWaitForWindowActive(&window));
|
||||
QVERIFY(window.hasFocus());
|
||||
|
|
Loading…
Reference in New Issue