diff options
Diffstat (limited to 'tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp')
-rw-r--r-- | tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp | 4 |
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); |