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>
This commit is contained in:
parent
81dcb377e5
commit
b2fb578a11
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user