summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets
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-02 15:33:11 +0100
commitb2fb578a115f554ec7a00558978e5532a2ac855a (patch)
treed9a698c616e1b83806280944dfb5bcdbcad96be4 /tests/auto/widgets
parent81dcb377e5c53e3e0ec91dffa749da73472b6030 (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>
Diffstat (limited to 'tests/auto/widgets')
-rw-r--r--tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
index fc49403748..af76b1c3c1 100644
--- a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp
@@ -1397,6 +1397,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);