Stabilize tst_qgraphicssceneindex.

Change-Id: I8cda10a5a4c9bf949b560e7be4da9bef92667688
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
Friedemann Kleint 2013-05-23 09:33:27 +02:00 committed by The Qt Project
parent 7a6c0f0673
commit ef8ece3f93

View File

@ -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();