tst_QGraphicsGridLayout: remove unneeded delete in rowMaximumHeight()
The deleted 'widget' was added to a stack-allocated QGraphicsScene, which owns it and will delete it as its child if it itself is deleted. There's no check following the manual delete, and the test function's name shows no indication that deleting graphics-widgets from a scene in a show()n QGraphicsView is being tested here, so it serves no purpose. Remove it. Amends the start of the public history. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: I4e5405cd6212d2a318a567d99ef42c99261d431a Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
b9836518a3
commit
fc89096bcb
@ -1259,8 +1259,6 @@ void tst_QGraphicsGridLayout::rowMaximumHeight()
|
||||
QCOMPARE(layout->itemAt(1,1)->geometry().height(), 25.0);
|
||||
QCOMPARE(layout->itemAt(2,0)->geometry().height(), 25.0);
|
||||
QCOMPARE(layout->itemAt(2,1)->geometry().height(), 25.0);
|
||||
|
||||
delete widget;
|
||||
}
|
||||
|
||||
void tst_QGraphicsGridLayout::rowMinimumHeight_data()
|
||||
|
Loading…
x
Reference in New Issue
Block a user