QmlDesigner: fixing memory leak

This commit is contained in:
Thomas Hartmann
2010-04-19 16:05:08 +02:00
parent 24a9a22b53
commit 524f998caf

View File

@@ -220,7 +220,7 @@ void PropertyEditorValue::registerDeclarativeTypes()
qmlRegisterType<QDeclarativePropertyMap>("Bauhaus",1,0,"QDeclarativePropertyMap"); qmlRegisterType<QDeclarativePropertyMap>("Bauhaus",1,0,"QDeclarativePropertyMap");
} }
PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(PropertyEditorValue* parent) : m_valuesPropertyMap(this) PropertyEditorNodeWrapper::PropertyEditorNodeWrapper(PropertyEditorValue* parent) : QObject(parent), m_valuesPropertyMap(this)
{ {
m_editorValue = parent; m_editorValue = parent;
connect(m_editorValue, SIGNAL(modelNodeChanged()), this, SLOT(update())); connect(m_editorValue, SIGNAL(modelNodeChanged()), this, SLOT(update()));