tst_QGL: Use qWaitForWindowExposed()

Instead of an unconditional wait.

Change-Id: I360cd665c10c3fd4f936c95ef04957ae1c49c0de
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
Kari Oikarinen 2018-04-03 13:32:41 +03:00
parent 95c8f24b71
commit 8c3475c190

View File

@ -923,8 +923,7 @@ void tst_QGL::partialGLWidgetUpdates()
widget.setFixedSize(150, 150); widget.setFixedSize(150, 150);
widget.setAutoFillBackground(autoFillBackground); widget.setAutoFillBackground(autoFillBackground);
widget.show(); widget.show();
QVERIFY(QTest::qWaitForWindowExposed(&widget));
QTest::qWait(200);
if (widget.format().doubleBuffer() != doubleBufferedContext) if (widget.format().doubleBuffer() != doubleBufferedContext)
QSKIP("Platform does not support requested format"); QSKIP("Platform does not support requested format");