Fix flaky tst_QFocusEvent::checkReason_ActiveWindow on openSUSE
tst_QFocusEvent::CheckReason_ActiveWindow is flaky on openSUSE where the childFocusWidgetOne is unable to receive focus after d has been hidden. This is due to some asynchronicity when setActive is being called while d is already active. Remove the call to activateWindow on d as it is already active by calling show. Pick-to: 6.8 6.5 Change-Id: Id01c6704122df42982d65d28ddb94d184d00d9aa Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 4db3961ee140867e14f8e1d20173e85060bc6c50) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c76d1a9753
commit
29d030b246
@ -310,8 +310,6 @@ void tst_QFocusEvent::checkReason_ActiveWindow()
|
||||
QDialog* d = new QDialog( testFocusWidget );
|
||||
d->show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(d));
|
||||
|
||||
d->activateWindow(); // ### CDE
|
||||
QVERIFY(QTest::qWaitForWindowActive(d));
|
||||
|
||||
QTRY_VERIFY(childFocusWidgetOne->focusOutEventRecieved);
|
||||
|
Loading…
x
Reference in New Issue
Block a user