diff options
author | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-01-30 12:36:38 +0100 |
---|---|---|
committer | Frédéric Lefebvre <frederic.lefebvre@qt.io> | 2024-04-26 18:59:53 +0200 |
commit | 9fa92249c1274a5c4780f56ab1e22299fda25780 (patch) | |
tree | d88ab1de911f6a0f379ab0e71e11173235e8ed9d | |
parent | ba2f7945965d9d84d802ab0bda04664229209d3f (diff) |
tst_QFileDialog2::dontShowCompleterOnRoot() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: Ie16a0ef8fb2209ed1f1253825519be2c8b02101f
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
-rw-r--r-- | tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp b/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp index f658c65a97..c34c8559da 100644 --- a/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp +++ b/tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp @@ -1342,7 +1342,6 @@ void tst_QFileDialog2::dontShowCompleterOnRoot() fd.setAcceptMode(QFileDialog::AcceptSave); fd.show(); - QApplicationPrivate::setActiveWindow(&fd); QVERIFY(QTest::qWaitForWindowActive(&fd)); QCOMPARE(fd.isVisible(), true); QCOMPARE(QApplication::activeWindow(), static_cast<QWidget*>(&fd)); |