qt5base-lts/tests/auto/widgets/graphicsview
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
..
qgraphicsanchorlayout tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qgraphicsanchorlayout1 tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qgraphicseffectsource Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsgridlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsitem tst_QGraphicsItem: Fix UB (invalid cast/member call) in prepareGeometryChange() 2016-09-22 15:25:18 +00:00
qgraphicsitemanimation Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicslayout tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qgraphicslayoutitem Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicslinearlayout Remove empty first lines of files. 2016-04-06 18:26:26 +00:00
qgraphicsobject tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qgraphicspixmapitem Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicspolygonitem Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsproxywidget Fix memory leak in tst_qgraphicsproxywidget 2016-08-10 11:06:31 +00:00
qgraphicsscene tests/auto/widgets: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 11:50:10 +00:00
qgraphicssceneindex Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicstransform Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsview Plug more than 4k leaks in tst_QGraphicsView 2016-10-11 20:52:42 +00:00
qgraphicswidget Autotest: Enable make check on rhel 7.1 2016-02-11 05:47:38 +00:00
graphicsview.pro Re-enable tests tst_qgraphicsproxywidget, tst_qgraphicswidget. 2013-07-24 22:16:58 +02:00