Commit 7468ccc3 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.Model: Make removeProperty const

Change-Id: I717a9d2cafc0636f4dcfbae074f30e214a089b8f
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8dfea825
......@@ -128,7 +128,7 @@ public:
NodeListProperty defaultNodeListProperty() const;
NodeProperty defaultNodeProperty() const;
void removeProperty(const PropertyName &name); //### also implement in AbstractProperty
void removeProperty(const PropertyName &name) const; //### also implement in AbstractProperty
QList<AbstractProperty> properties() const;
QList<VariantProperty> variantProperties() const;
QList<NodeAbstractProperty> nodeAbstractProperties() const;
......
......@@ -583,7 +583,7 @@ Does nothing if the node state does not set this property.
\see addProperty property properties hasProperties
*/
void ModelNode::removeProperty(const PropertyName &name)
void ModelNode::removeProperty(const PropertyName &name) const
{
if (!isValid())
throw InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment