From 64bce9bbff44d337ba6f25f8d0571810b668825d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Mon, 17 Jul 2017 15:24:02 +0200 Subject: tst_QGL::graphicsViewClipping: Wait for viewport's window handle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The QWidget overload of qWaitForWindowExposed waits for the widget's top level QWindow, which for the viewport is the graphics-view. We want to explicitly wait for the viewport to be exposed, as the viewport is covering the whole graphics-view, preventing it from being exposed. See a6991376c. Change-Id: I86df43871126562f09e4ce14931bc6fc7f06263d Reviewed-by: Simon Hausmann Reviewed-by: Tor Arne Vestbø --- tests/auto/opengl/qgl/tst_qgl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/opengl/qgl') diff --git a/tests/auto/opengl/qgl/tst_qgl.cpp b/tests/auto/opengl/qgl/tst_qgl.cpp index cc4e15c407..f110b9cb0d 100644 --- a/tests/auto/opengl/qgl/tst_qgl.cpp +++ b/tests/auto/opengl/qgl/tst_qgl.cpp @@ -868,7 +868,7 @@ void tst_QGL::graphicsViewClipping() scene.setSceneRect(view.viewport()->rect()); - QVERIFY(QTest::qWaitForWindowExposed(view.viewport())); + QVERIFY(QTest::qWaitForWindowExposed(view.viewport()->windowHandle())); #ifdef Q_OS_MAC // The black rectangle jumps from the center to the upper left for some reason. QTest::qWait(100); -- cgit v1.2.3