tst_QWidget::focusChainOnHide remove QApplicationPrivate::setActiveWind

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: I5b429dcaa47cd179785345f9f7a80648574670dd
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
Frédéric Lefebvre 2024-01-29 09:44:10 +01:00
parent b7b0478405
commit 021b5e3d3f
1 changed files with 0 additions and 2 deletions

View File

@ -1937,8 +1937,6 @@ void tst_QWidget::focusChainOnHide()
QWidget::setTabOrder(child, parent.data());
parent->show();
QApplicationPrivate::setActiveWindow(parent->window());
child->activateWindow();
child->setFocus();
QTRY_VERIFY(child->hasFocus());