summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2012-02-29 21:09:26 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-03-05 17:03:53 (GMT)
commita7561f5561d8aa544f438bffb770cbc35c3c7e0f (patch)
tree5375d1be0f56ad096656bd3fa643ff00a62c42f7 /tests
parent0476c6b6d53f2ec55d261099b2e98e851a8f5a43 (diff)
downloadQt-a7561f5561d8aa544f438bffb770cbc35c3c7e0f.zip
Qt-a7561f5561d8aa544f438bffb770cbc35c3c7e0f.tar.gz
Qt-a7561f5561d8aa544f438bffb770cbc35c3c7e0f.tar.bz2
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)
Diffstat (limited to 'tests')
-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 68b7174..c7e0b88 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);