QmlDesigner: Rename removeVariantProperty in removeProperty

Change-Id: Id350f7d3e215d08210a3a535f89b12fe15928321
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Marco Bubke
2013-06-25 12:24:37 +02:00
parent 7048709ab8
commit 24d1e54490
4 changed files with 4 additions and 4 deletions

View File

@@ -508,7 +508,7 @@ void PropertyEditor::changeValue(const QString &name)
try {
if (!value->value().isValid()) { //reset
fxObjectNode.removeVariantProperty(propertyName);
fxObjectNode.removeProperty(propertyName);
} else {
if (castedValue.isValid() && !castedValue.isNull()) {
m_locked = true;

View File

@@ -363,7 +363,7 @@ void PropertyEditorNodeWrapper::changeValue(const QString &propertyName)
if (valueObject->value().isValid())
fxObjectNode.setVariantProperty(name, valueObject->value());
else
fxObjectNode.removeVariantProperty(name);
fxObjectNode.removeProperty(name);
}
}

View File

@@ -89,7 +89,7 @@ public:
QList<QmlModelState> allAffectingStates() const;
QList<QmlModelStateOperation> allAffectingStatesOperations() const;
void removeVariantProperty(const PropertyName &name);
void removeProperty(const PropertyName &name);
void setParent(QmlObjectNode newParent);

View File

@@ -364,7 +364,7 @@ QList<QmlModelState> QmlObjectNode::allDefinedStates() const
*/
void QmlObjectNode::removeVariantProperty(const PropertyName &name)
void QmlObjectNode::removeProperty(const PropertyName &name)
{
if (!isValid())
throw new InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__);