aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-06 14:10:38 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-09 17:36:35 +0200
commit02675dc0208d46e6e10880a3003bcca27ac9caeb (patch)
tree6ac2b0d5189e14fbc4b81e974eda0436fc4ab083 /tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
parente1d6b323d474acc5cd70fd9a0b283326316f55a0 (diff)
Use qWaitForWindowActive() where it is required.
Prepare a change in qtbase in which the implementation of qWaitForWindowShown() will be changed to qWaitForWindowExposed() instead of qWaitForWindowActive(). Try to stabilize further tests by introduing wait functions instead of calls to qApp->processEvents(). Change-Id: I9825885430d78be1610a3fe20023fad24aaacba9 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp')
-rw-r--r--tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
index 4847dd3d1c..a8bf69e657 100644
--- a/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
+++ b/tests/auto/quick/qquickitemlayer/tst_qquickitemlayer.cpp
@@ -266,7 +266,7 @@ void tst_QQuickItemLayer::layerVisibility()
view.show();
- QTest::qWaitForWindowShown(&view);
+ QTest::qWaitForWindowActive(&view);
QImage fb = view.grabFrameBuffer();
uint pixel = fb.pixel(0, 0);