tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut remove setActiveWindow()
2f6fe3a26843ff68c5d3f9af0a2fc3cce6caac22 has made calls to QApplicationPrivate::setActiveWindow() redundant. Remove redundant calls. Task-number: QTBUG-121488 Change-Id: I56486068beae84d6f10bd525fc132081ce8c7fe5 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
e4fcdb7419
commit
478dacbbf0
@ -4061,7 +4061,6 @@ void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
|
|||||||
|
|
||||||
le.show();
|
le.show();
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&le));
|
QVERIFY(QTest::qWaitForWindowExposed(&le));
|
||||||
QApplicationPrivate::setActiveWindow(&le);
|
|
||||||
QVERIFY(QTest::qWaitForWindowActive(&le));
|
QVERIFY(QTest::qWaitForWindowActive(&le));
|
||||||
le.setFocus();
|
le.setFocus();
|
||||||
QTRY_VERIFY(le.hasFocus());
|
QTRY_VERIFY(le.hasFocus());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user