From ef8ece3f93f5d9f1a1f867df20923839f0ab6950 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 23 May 2013 09:33:27 +0200 Subject: [PATCH] Stabilize tst_qgraphicssceneindex. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8cda10a5a4c9bf949b560e7be4da9bef92667688 Reviewed-by: Samuel Rødal --- .../qgraphicssceneindex/tst_qgraphicssceneindex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp index 7794fde2c7..dd432912f3 100644 --- a/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicssceneindex/tst_qgraphicssceneindex.cpp @@ -307,8 +307,8 @@ void tst_QGraphicsSceneIndex::clear() QGraphicsView view(&scene); view.show(); - QVERIFY(QTest::qWaitForWindowActive(&view)); qApp->setActiveWindow(&view); + QVERIFY(QTest::qWaitForWindowActive(&view)); scene.clear(); // Make sure the index is re-generated after QGraphicsScene::clear();