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:
parent
4cf30d8c1b
commit
d68da61564
@ -1,5 +1,3 @@
|
||||
[stretchAndRestoreLastSection]
|
||||
opensuse-leap
|
||||
# QTBUG-87406
|
||||
[stretchAndRestoreLastSection]
|
||||
android
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user