aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickimage
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-19 14:13:14 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-19 14:37:49 +0200
commitbd618f62d8d796638ee72374a0fcdfd6c6b7aa97 (patch)
tree708e1e6e1f7b0aefe5d828eb832b6fff24c9af66 /tests/auto/quick/qquickimage
parent5480e6c2875d434a3c2264bc50d58cabdd055468 (diff)
QtDeclarative: Remove usage of deprecated qWaitForWindowShown().
- Replace by qWaitForWindowExposed() or qWaitForWindowActive() where applicable. - Use QVERIFY to verify success. - Stabilize some tests by checking for 'active', add missing call to show(). Change-Id: I6cae063e44a3839760ed9f61dacb26cd1717118d Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'tests/auto/quick/qquickimage')
-rw-r--r--tests/auto/quick/qquickimage/tst_qquickimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/quick/qquickimage/tst_qquickimage.cpp b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
index d81fc40477..c069a826f6 100644
--- a/tests/auto/quick/qquickimage/tst_qquickimage.cpp
+++ b/tests/auto/quick/qquickimage/tst_qquickimage.cpp
@@ -314,7 +314,7 @@ void tst_qquickimage::mirror()
obj->setProperty("mirror", true);
window->show();
window->requestActivateWindow();
- QTest::qWaitForWindowShown(window);
+ QVERIFY(QTest::qWaitForWindowActive(window));
QImage screenshot = window->grabWindow();
screenshots[fillMode] = screenshot;