taskQTBUG46812_doNotLeaveMenubarHighLighted() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: Iacaf59536ed01e34ed933976b53228a3bd2b22f1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
5f8dc8ea5f
commit
835598e20d
|
|
@ -1530,7 +1530,6 @@ void tst_QMenuBar::taskQTBUG46812_doNotLeaveMenubarHighlighted()
|
|||
initWindowWithSimpleMenuBar(mainWindow);
|
||||
|
||||
mainWindow.show();
|
||||
QApplicationPrivate::setActiveWindow(&mainWindow);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&mainWindow));
|
||||
|
||||
QVERIFY(!mainWindow.menuBar()->hasFocus());
|
||||
|
|
|
|||
Loading…
Reference in New Issue