qt6-bb10/tests/auto/widgets/graphicsview/qgraphicsview
Marc Mutz f6498fd677 Plug more than 4k leaks in tst_QGraphicsView
The vast majority is due to leaking styles in a data-driven
test with almost 100 rows (scrollBarRanges()).

Fix by creating the style into a QScopedPointer.

The remaining ~500 leaks were due to leaked QGraphicsScenes.
They had no parent, and QGraphicsView::addScene() does not
adopt them.

Fix those by passing the resp. view as their (QObject) parent.

Change-Id: I4316798019114ea3d7504d72cd83d534a21149c0
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2016-10-11 20:52:42 +00:00
..
.gitignore
BLACKLIST Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qgraphicsview.pro Enable tst_QGraphicsView on OSX 2014-11-19 16:13:43 +01:00
tst_qgraphicsview.cpp Plug more than 4k leaks in tst_QGraphicsView 2016-10-11 20:52:42 +00:00
tst_qgraphicsview.h Update copyright headers 2015-02-11 06:49:51 +00:00
tst_qgraphicsview_2.cpp Update copyright headers 2015-02-11 06:49:51 +00:00