aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2021-12-09 11:58:24 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2021-12-10 06:52:39 +0100
commit5b57aae8ba7896281c616e547f3d1f7604c9a5f5 (patch)
tree1d12bfeb7daf683989e045988419c34eee7ffbae /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parent8326ff2ac1472415b82734946435d3e7e75d522b (diff)
QQuickSelectionRectangle: Don't leak the pointer handlers
Pointer Handlers reuse QObject::parent() for parentItem(). A handler should not be instantiated in C++ with no parent, because it could leak at shutdown if left in that state. But now we have QQuickPointerHandler::setParentItem(), which hides the details of adding it to ExtraData::pointerHandlers, so we no longer need to do that explicitly here; and it doesn't seem harmful to otherwise allow the handlers' QObject::parent to be the SelectionRectangle itself. Change-Id: Ifcff14329d7a550c4d3749a09dc015bc112a1d28 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
0 files changed, 0 insertions, 0 deletions