summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Lefebvre <frederic.lefebvre@qt.io>2024-02-09 16:48:51 +0100
committerFrédéric Lefebvre <frederic.lefebvre@qt.io>2024-05-06 16:29:02 +0200
commit7feaf9d41ed962dba04ce29d3a285c54ed04e9fc (patch)
treec9cc9fdc0a33443f814067c3f11246775e974518
parent8b3620c93d023dbc59f845d45f70d6e542f341a1 (diff)
tst_QGroupBox::propagateFocus() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I2bcad29de4bcbb90a1e891a2f39db966288abdb1 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
-rw-r--r--tests/auto/widgets/widgets/qgroupbox/tst_qgroupbox.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qgroupbox/tst_qgroupbox.cpp b/tests/auto/widgets/widgets/qgroupbox/tst_qgroupbox.cpp
index 0d716cce97..b178707e7a 100644
--- a/tests/auto/widgets/widgets/qgroupbox/tst_qgroupbox.cpp
+++ b/tests/auto/widgets/widgets/qgroupbox/tst_qgroupbox.cpp
@@ -462,7 +462,6 @@ void tst_QGroupBox::propagateFocus()
QGroupBox box;
QLineEdit lineEdit(&box);
box.show();
- QApplicationPrivate::setActiveWindow(&box);
QVERIFY(QTest::qWaitForWindowActive(&box));
box.setFocus();
QTRY_COMPARE(qApp->focusWidget(), static_cast<QWidget*>(&lineEdit));