summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-03-01 08:09:26 +1100
committerQt by Nokia <qt-info@nokia.com>2012-03-05 18:03:53 +0100
commita7561f5561d8aa544f438bffb770cbc35c3c7e0f (patch)
tree5375d1be0f56ad096656bd3fa643ff00a62c42f7
parent0476c6b6d53f2ec55d261099b2e98e851a8f5a43 (diff)
Fix sizing in QGraphicsView itemsAtPosition auto test
The auto test may fail incorrectly depending on the width of the QGraphicsView frame. To ensure more consistent test results, the frame is disabled. Change-Id: I8d70fb07e45803230954f776947d525e4cf9050f Reviewed-by: Robin Burchell <robin+qt@viroteck.net> (cherry picked from commit b2fb578a115f554ec7a00558978e5532a2ac855a)
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
index 68b71741aa..c7e0b888b3 100644
--- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
@@ -1389,6 +1389,7 @@ void tst_QGraphicsView::itemsAtPosition()
item->setFlag(QGraphicsItem::ItemIgnoresTransformations);
QGraphicsView view;
+ view.setFrameStyle(QFrame::NoFrame);
view.resize(200, 200);
view.scale(scale, scale);
view.rotate(rotation);