QTBUG4842_selectFilterWithHideNameFilterDetails remove setActiveWindow
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: Ib92cf34d4cd022ccba245508d992ab01099cd97b
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
ff00e807c8
commit
2574424d7a
|
|
@ -1308,7 +1308,6 @@ void tst_QFileDialog2::QTBUG4842_selectFilterWithHideNameFilterDetails()
|
|||
fd.selectNameFilter(chosenFilterString);
|
||||
fd.show();
|
||||
|
||||
QApplicationPrivate::setActiveWindow(&fd);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&fd));
|
||||
QCOMPARE(fd.isVisible(), true);
|
||||
QCOMPARE(QApplication::activeWindow(), static_cast<QWidget*>(&fd));
|
||||
|
|
@ -1324,7 +1323,6 @@ void tst_QFileDialog2::QTBUG4842_selectFilterWithHideNameFilterDetails()
|
|||
fd2.selectNameFilter(chosenFilterString);
|
||||
fd2.show();
|
||||
|
||||
QApplicationPrivate::setActiveWindow(&fd2);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&fd2));
|
||||
QCOMPARE(fd2.isVisible(), true);
|
||||
QCOMPARE(QApplication::activeWindow(), static_cast<QWidget*>(&fd2));
|
||||
|
|
|
|||
Loading…
Reference in New Issue