summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-05 07:00:21 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-06-09 07:34:57 (GMT)
commit5ab06593a1ed4c050d19f734737a50078b0fbb52 (patch)
tree1d2d707b1fa10a60612dad00a3ae642222a74d43 /tests/auto
parent9aa44bff88f377f056eafe5d9f24c88d81f477e5 (diff)
downloadQt-5ab06593a1ed4c050d19f734737a50078b0fbb52.zip
Qt-5ab06593a1ed4c050d19f734737a50078b0fbb52.tar.gz
Qt-5ab06593a1ed4c050d19f734737a50078b0fbb52.tar.bz2
Fix tst_QGraphicsView::acceptMousePressEvent (by entering event loop).
This is necessary after we made the sceneRect grow lazily when it's not assigned.
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
index 8e490ad..718c8d6 100644
--- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
@@ -2525,6 +2525,8 @@ void tst_QGraphicsView::acceptMousePressEvent()
scene.addRect(0, 0, 2000, 2000)->setFlag(QGraphicsItem::ItemIsMovable);
+ qApp->processEvents(); // ensure scene rect is updated
+
QApplication::sendEvent(view.viewport(), &event);
QVERIFY(view.accepted);
}