summaryrefslogtreecommitdiff
path: root/tests/auto/widgets/graphicsview/qgraphicssceneindex
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-07-30 12:36:02 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-01 13:26:03 +0200
commit305cdc7355c4b021cfe54c710aa92a88e12fe188 (patch)
tree0d141f080278556d3ed454f92a5cba6012a2a5b4 /tests/auto/widgets/graphicsview/qgraphicssceneindex
parent0838ac541d38b33b23955c036bbcfd94ccc19066 (diff)
downloadqtbase-305cdc7355c4b021cfe54c710aa92a88e12fe188.tar.gz
Remove usage of deprecated qWaitForWindowShown(QWidget *) method.
Change-Id: I445d24a09dbb7abb62a37bd9914284f21a4f08f1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/graphicsview/qgraphicssceneindex')
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
index 450b970958..b7c99d559a 100644
--- a/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
@@ -276,9 +276,7 @@ void tst_QGraphicsSceneIndex::removeItems()
view.resize(600, 600);
view.show();
QApplication::setActiveWindow(&view);
- QTest::qWaitForWindowShown(&view);
-
- QApplication::processEvents();
+ QVERIFY(QTest::qWaitForWindowActive(&view));
scene.removeItem(widgetChild1);