Fix sizing in QGraphicsView itemsAtPosition auto test
authorJonathan Liu <net147@gmail.com>
Wed, 29 Feb 2012 21:09:26 +0000 (08:09 +1100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 14:33:11 +0000 (15:33 +0100)
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>
tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp

index fc49403..af76b1c 100644 (file)
@@ -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);