qt5base-lts/tests/auto/widgets/graphicsview
Christian Ehrlicher 794140fb86 QGraphicsProxyWidget: Don't crash within setWidget() when a child proxy has no assigned widget
QGraphicsProxyWidget::setWidget() is checking if the newly assigned
widget is already assigned to a child proxy widget without checking if
the child has a widget assigned at all which lead to a nullptr reference
if it is not the case.
Therefore check if the assigned widget is a valid pointer.

Fixes: QTBUG-15442
Change-Id: I006877f99895ca01975bdcad071cfcf90bea22ad
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2018-11-22 16:43:38 +00:00
..
qgraphicsanchorlayout Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsanchorlayout1 tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicseffectsource Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsgridlayout tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicsitem Fix test for multiscreen 2018-11-09 21:42:57 +00:00
qgraphicsitemanimation tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayout tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslayoutitem tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qgraphicslinearlayout tests/auto/widgets/graphicsview: Avoid unconditional qWait()s 2018-05-14 06:05:19 +00:00
qgraphicsobject Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspixmapitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicspolygonitem Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsproxywidget QGraphicsProxyWidget: Don't crash within setWidget() when a child proxy has no assigned widget 2018-11-22 16:43:38 +00:00
qgraphicsscene macOS: Remove blacklist entries for no longer supported OS versions 2018-11-12 07:16:30 +00:00
qgraphicssceneindex winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00
qgraphicstransform Updated license headers 2016-01-21 18:55:18 +00:00
qgraphicsview Fix use of QTest::mouseMove() in widgets tests 2018-07-12 09:51:56 +00:00
qgraphicswidget qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
graphicsview.pro winrt: make graphicsview auto tests pass 2018-05-28 06:50:46 +00:00