From 0e2395dc097bdebbe07358933d332aab78396496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Lefebvre?= Date: Tue, 6 Feb 2024 11:34:24 +0100 Subject: [PATCH] tst_QCompleter::focusIn() remove QApplicationPrivate::setActiveWindow() 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I129183b6e65da297d457fbebfeba940daffc9b3d Reviewed-by: Axel Spoerl --- tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp index 3fc82a7d11..48976a6eda 100644 --- a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp @@ -1105,7 +1105,6 @@ void tst_QCompleter::focusIn() window.move(200, 200); window.show(); window.activateWindow(); - QApplicationPrivate::setActiveWindow(&window); QVERIFY(QTest::qWaitForWindowActive(&window)); auto comboBox = new QComboBox(&window);