From bcd3a00dfa42f406668a7e8a5a40eaf663fcbfac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Lefebvre?= Date: Tue, 6 Feb 2024 12:48:55 +0100 Subject: tst_QScroller::scrollTo() remove QApplicationPrivate::setActiveWindow() 2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: Ife4096dbe6f196d91f3d865c9e58908c4c30759f Reviewed-by: Axel Spoerl --- tests/auto/widgets/util/qscroller/tst_qscroller.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/auto/widgets/util/qscroller/tst_qscroller.cpp') diff --git a/tests/auto/widgets/util/qscroller/tst_qscroller.cpp b/tests/auto/widgets/util/qscroller/tst_qscroller.cpp index a328b0c8d7..8beeb9136c 100644 --- a/tests/auto/widgets/util/qscroller/tst_qscroller.cpp +++ b/tests/auto/widgets/util/qscroller/tst_qscroller.cpp @@ -324,7 +324,6 @@ void tst_QScroller::scrollTo() { QScopedPointer sw(new tst_QScrollerWidget); sw->show(); - QApplicationPrivate::setActiveWindow(sw.data()); if (!QTest::qWaitForWindowExposed(sw.data()) || !QTest::qWaitForWindowActive(sw.data())) QSKIP("Failed to show and activate window"); -- cgit v1.2.3