tst_QWidget::explicitTabOrderWithComplexWidget remove setActiveWindow()

2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to
QApplicationPrivate::setActiveWindow() redundant.

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I0271f3baf718ca5ae03464bbd415cd0feaa9087d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Frédéric Lefebvre 2024-01-29 10:46:23 +01:00
parent 91079e64d8
commit a5b9ba15e2

View File

@ -2849,7 +2849,6 @@ void tst_QWidget::explicitTabOrderWithComplexWidget()
QWidget::setTabOrder(lineEditOne, lineEditTwo); QWidget::setTabOrder(lineEditOne, lineEditTwo);
lineEditOne->setFocus(); lineEditOne->setFocus();
window.show(); window.show();
QApplicationPrivate::setActiveWindow(&window);
QVERIFY(QTest::qWaitForWindowActive(&window)); QVERIFY(QTest::qWaitForWindowActive(&window));
QTRY_COMPARE(QApplication::focusWidget(), lineEditOne); QTRY_COMPARE(QApplication::focusWidget(), lineEditOne);