forked from qt-creator/qt-creator
QmlDesigner: Set proper ownership on returned C++ object
Change-Id: Id9971cdec65bb84b310196ef84d0bccca9a12e57 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
230372b25a
commit
41181df0ef
@@ -274,6 +274,8 @@ PropertyEditorValue *DynamicPropertyRow::createProxyBackendValue()
|
|||||||
auto *newValue = new PropertyEditorValue(this);
|
auto *newValue = new PropertyEditorValue(this);
|
||||||
m_proxyBackendValues.append(newValue);
|
m_proxyBackendValues.append(newValue);
|
||||||
|
|
||||||
|
QQmlEngine::setObjectOwnership(newValue, QJSEngine::CppOwnership);
|
||||||
|
|
||||||
return newValue;
|
return newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user