forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Tim Jenssen
parent
c351e8c9c7
commit
735d6af931
@@ -274,6 +274,8 @@ PropertyEditorValue *DynamicPropertyRow::createProxyBackendValue()
|
||||
auto *newValue = new PropertyEditorValue(this);
|
||||
m_proxyBackendValues.append(newValue);
|
||||
|
||||
QQmlEngine::setObjectOwnership(newValue, QJSEngine::CppOwnership);
|
||||
|
||||
return newValue;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user