summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
diff options
context:
space:
mode:
authorFrédéric Lefebvre <frederic.lefebvre@qt.io>2024-02-09 17:16:14 +0100
committerFrédéric Lefebvre <frederic.lefebvre@qt.io>2024-05-06 11:15:04 +0200
commitd8a022eec4b3d1f9a775af28f4a9a4d22a8b309a (patch)
treeb2ebf5e1be33f51f1fbd75cdaa62eceaea5a1fd0 /tests/auto/widgets
parent18379e5fd7912cf1408e59c254f3d954231e9619 (diff)
taskQTBUG_5008_textFromValueAndValidate() remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 as made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ifec63ae2fcacdc37096e55f096def8c90a7b75ab Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
index 747f184fe3..4ccecce990 100644
--- a/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
+++ b/tests/auto/widgets/widgets/qspinbox/tst_qspinbox.cpp
@@ -1209,7 +1209,6 @@ void tst_QSpinBox::taskQTBUG_5008_textFromValueAndValidate()
spinbox.show();
spinbox.activateWindow();
spinbox.setFocus();
- QApplicationPrivate::setActiveWindow(&spinbox);
QVERIFY(QTest::qWaitForWindowActive(&spinbox));
QVERIFY(spinbox.hasFocus());
QTRY_COMPARE(static_cast<QWidget *>(&spinbox), QApplication::activeWindow());