QmlDesigner.propertyEditor: cleaning up code

This commit is contained in:
Thomas Hartmann
2010-02-16 12:44:17 +01:00
parent d512530958
commit c4e8345436

View File

@@ -120,7 +120,6 @@ void createPropertyEditorValue(const QmlObjectNode &fxObjectNode, const QString
void PropertyEditor::NodeType::setValue(const QmlObjectNode &fxObjectNode, const QString &name, const QVariant &value) void PropertyEditor::NodeType::setValue(const QmlObjectNode &fxObjectNode, const QString &name, const QVariant &value)
{ {
//createPropertyEditorValue(fxObjectNode, name, value, &m_backendValuesPropertyMap);
PropertyEditorValue *propertyValue = qobject_cast<PropertyEditorValue*>(QmlMetaType::toQObject(m_backendValuesPropertyMap.value(name))); PropertyEditorValue *propertyValue = qobject_cast<PropertyEditorValue*>(QmlMetaType::toQObject(m_backendValuesPropertyMap.value(name)));
if (propertyValue) if (propertyValue)
propertyValue->setValue(value); propertyValue->setValue(value);