forked from qt-creator/qt-creator
QmlDesigner: Rename removeVariantProperty in removeProperty
Change-Id: Id350f7d3e215d08210a3a535f89b12fe15928321 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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__);
|
||||
|
||||
Reference in New Issue
Block a user