qt6-bb10/src/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
..
graphicsview.pri
qgraph_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsanchorlayout.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsanchorlayout.h QGraphicsAnchorLayout: move some private classes to a namespace with Q 2018-08-19 08:48:36 +00:00
qgraphicsanchorlayout_p.cpp QGraphicsAnchorLayout: move some private classes to a namespace with Q 2018-08-19 08:48:36 +00:00
qgraphicsanchorlayout_p.h QGraphicsAnchorLayout: move some private classes to a namespace with Q 2018-08-19 08:48:36 +00:00
qgraphicsgridlayout.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsgridlayout.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicsgridlayoutengine.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsgridlayoutengine_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicsitem.cpp Doc: Move literal code block to a separate file 2018-10-15 10:55:18 +00:00
qgraphicsitem.h doc: Fix a property declaration for clang-qdoc 2018-01-24 10:01:42 +00:00
qgraphicsitem_p.h WebAssembly for QtBase 2018-08-30 06:48:33 +00:00
qgraphicsitemanimation.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsitemanimation.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicslayout.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayout.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicslayout_p.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayout_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayoutitem.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayoutitem.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicslayoutitem_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayoutstyleinfo.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslayoutstyleinfo_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicslinearlayout.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicslinearlayout.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicsproxywidget.cpp QGraphicsProxyWidget: Don't crash within setWidget() when a child proxy has no assigned widget 2018-11-22 16:43:38 +00:00
qgraphicsproxywidget.h Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
qgraphicsproxywidget_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsscene.cpp QGraphicsScene: Make focusing on touchBegin optional 2018-10-04 07:00:21 +00:00
qgraphicsscene.h QGraphicsScene: Make focusing on touchBegin optional 2018-10-04 07:00:21 +00:00
qgraphicsscene_bsp.cpp Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicsscene_bsp_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsscene_p.h QGraphicsScene: Make focusing on touchBegin optional 2018-10-04 07:00:21 +00:00
qgraphicsscenebsptreeindex.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsscenebsptreeindex_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicssceneevent.cpp Add debug operators for QGraphicsSceneEvent-based classes 2018-02-15 07:28:35 +00:00
qgraphicssceneevent.h Add debug operators for QGraphicsSceneEvent-based classes 2018-02-15 07:28:35 +00:00
qgraphicssceneindex.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicssceneindex_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsscenelinearindex.cpp
qgraphicsscenelinearindex_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qgraphicstransform.cpp Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicstransform.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicstransform_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicsview.cpp Merge remote-tracking branch 'origin/5.11' into dev 2018-06-07 19:10:53 +02:00
qgraphicsview.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicsview_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00
qgraphicswidget.cpp doc: Document remaining anonymous enums 2017-12-06 07:11:48 +00:00
qgraphicswidget.h Replace Q_NULLPTR with nullptr where possible 2017-09-19 11:53:55 +00:00
qgraphicswidget_p.cpp doc: Fix many qdoc warnings, mostly missing return types 2018-01-24 10:01:26 +00:00
qgraphicswidget_p.h Replace Q_DECL_OVERRIDE with override where possible 2017-09-19 11:53:42 +00:00
qsimplex_p.cpp Add more Q_FALLTHROUGH() 2018-01-12 07:10:25 +00:00
qsimplex_p.h Convert features.graphicsview to QT_[REQUIRE_]CONFIG 2017-08-15 05:10:10 +00:00