task250119_shortcutContext() remove setActiveWindow()

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

Remove redundant calls.

Task-number: QTBUG-121488
Change-Id: Ie98bdf64973eeac91dd914af7af347cccb0ad5d3
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
Frédéric Lefebvre 2024-01-30 15:35:19 +01:00
parent 0e2395dc09
commit c7b1f4251a
1 changed files with 0 additions and 1 deletions

View File

@ -2694,7 +2694,6 @@ void tst_QGraphicsWidget::task250119_shortcutContext()
QGraphicsView view;
view.setScene(&scene);
view.show();
QApplicationPrivate::setActiveWindow(&view);
QTRY_COMPARE(QApplication::activeWindow(), (QWidget*)&view);