From: Jonathan Liu Date: Wed, 29 Feb 2012 21:09:26 +0000 (+1100) Subject: Fix sizing in QGraphicsView itemsAtPosition auto test X-Git-Tag: qt-v5.0.0-alpha1~609 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2fb578a115f554ec7a00558978e5532a2ac855a;p=profile%2Fivi%2Fqtbase.git 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 --- diff --git a/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/widgets/graphicsview/qgraphicsview/tst_qgraphicsview.cpp index fc49403..af76b1c 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);