tst_QShortcut::context() remove QApplicationPrivate::setActiveWindow()
2f6fe3a268 has made calls to
QApplicationPrivate::setActiveWindow() redundant.
Remove redundant calls.
Task-number: QTBUG-121488
Change-Id: I650e67f626865796480c422e9d7ff7dcfd11c9ca
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
parent
894b828dc6
commit
7a81b356ca
|
|
@ -1064,7 +1064,6 @@ void tst_QShortcut::context()
|
|||
|
||||
// Focus on 'other1' edit, so Active Window context should trigger
|
||||
other1->activateWindow(); // <---
|
||||
QApplicationPrivate::setActiveWindow(other1);
|
||||
QCOMPARE(QApplication::activeWindow(), other1->window());
|
||||
QCOMPARE(QApplication::focusWidget(), static_cast<QWidget *>(other1));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue