Wait for window focus instead of expose event

This fixes the flakiness seen in OpenSUSE KDE/X11 desktop.

Fixes: QTBUG-70590
Task-number: QTBUG-105177
Change-Id: I7c2431e58b2a60ea04e26d4e70c0f2867d544ff2
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Dimitrios Apostolou 2022-08-03 17:28:32 +02:00
parent 4cf30d8c1b
commit d68da61564
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,3 @@
[stretchAndRestoreLastSection]
opensuse-leap
# QTBUG-87406
[stretchAndRestoreLastSection]
android

View File

@ -3380,7 +3380,7 @@ void tst_QHeaderView::stretchAndRestoreLastSection()
const int someOtherSectionSize = 40;
const int biggerSizeThanAnySection = 50;
QVERIFY(QTest::qWaitForWindowExposed(&tv));
QVERIFY(QTest::qWaitForWindowActive(&tv));
QHeaderView &header = *tv.horizontalHeader();
// set minimum size before resizeSections() is called