closeOnSecondClickAndOpenOnThirdClick() remove setActiveWindow()
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: Id7e9fa632dda54c873881c9c5385cfab5158bc1f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
5dbd6a44d8
commit
76087c8717
|
|
@ -1280,7 +1280,6 @@ void tst_QMenuBar::closeOnSecondClickAndOpenOnThirdClick() // QTBUG-32807, menu
|
|||
QMenu *fileMenu = menuBar->addMenu(QStringLiteral("OpenCloseOpen"));
|
||||
fileMenu->addAction(QStringLiteral("Quit"));
|
||||
mainWindow.show();
|
||||
QApplicationPrivate::setActiveWindow(&mainWindow);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&mainWindow));
|
||||
|
||||
const QPoint center = menuBarActionWindowPos(mainWindow.menuBar(), fileMenu->menuAction());
|
||||
|
|
|
|||
Loading…
Reference in New Issue