tst_QAbstractScrollArea: Use qWaitForWindowExposed instead of active

Makes the test pass on Wayland.

Task-number: QTBUG-62188
Change-Id: I53011ad623e4bdb557d79c136f06ce7ac00a08ee
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
bb10
Johan Klokkhammer Helsing 2018-06-07 13:44:15 +02:00
parent faab18c65a
commit 8814c5778d
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ void tst_QAbstractScrollArea::patternBackground()
widget.resize(600, 600);
scrollArea.setWidget(&widget);
topLevel.show();
QVERIFY(QTest::qWaitForWindowActive(&topLevel));
QVERIFY(QTest::qWaitForWindowExposed(&topLevel));
QLinearGradient linearGrad(QPointF(250, 250), QPointF(300, 300));
linearGrad.setColorAt(0, Qt::yellow);