tst_QMdiArea::currentSubWindow() remove setActiveWindow() lower section
2f6fe3a268 as made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: I18e1233807cdde8c1f26c86fbbe7f34fc1311c0f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
545d10d471
commit
001c13fd2c
|
|
@ -1041,11 +1041,9 @@ void tst_QMdiArea::currentSubWindow()
|
|||
QCOMPARE(mdiArea.activeSubWindow(), active);
|
||||
QCOMPARE(mdiArea.currentSubWindow(), active);
|
||||
|
||||
QApplicationPrivate::setActiveWindow(&dummyTopLevel);
|
||||
QVERIFY(mdiArea.activeSubWindow());
|
||||
QCOMPARE(mdiArea.currentSubWindow(), active);
|
||||
|
||||
QApplicationPrivate::setActiveWindow(&mdiArea);
|
||||
active->show();
|
||||
QCOMPARE(mdiArea.activeSubWindow(), active);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue