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
parent
faab18c65a
commit
8814c5778d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue