diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2024-04-22 17:01:20 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2024-04-23 15:51:30 +0000 |
commit | 735d6af93138bdad19a6bca70b69f84496768e44 (patch) | |
tree | ae4a897de5b5c06dbdcafd340a95950e34835714 /src | |
parent | c351e8c9c7c61bcf72f022819d09141fe103ff35 (diff) |
QmlDesigner: Set proper ownership on returned C++ object
Change-Id: Id9971cdec65bb84b310196ef84d0bccca9a12e57
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp index fdd58c77a3..4898366619 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/dynamicpropertiesproxymodel.cpp @@ -274,6 +274,8 @@ PropertyEditorValue *DynamicPropertyRow::createProxyBackendValue() auto *newValue = new PropertyEditorValue(this); m_proxyBackendValues.append(newValue); + QQmlEngine::setObjectOwnership(newValue, QJSEngine::CppOwnership); + return newValue; } |