Commit 444bc6c9 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Add hasDefaultNodeAbstracProperty to ModelNode



Change-Id: I421686cdc9faf2a9dadad3162cfbfc6793ab3caf
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent d7402bff
......@@ -139,10 +139,10 @@ public:
bool hasVariantProperty(const PropertyName &name) const;
bool hasBindingProperty(const PropertyName &name) const;
bool hasNodeAbstracProperty(const PropertyName &name) const;
bool hasDefaultNodeAbstracProperty() const;
bool hasNodeProperty(const PropertyName &name) const;
bool hasNodeListProperty(const PropertyName &name) const;
void setScriptFunctions(const QStringList &scriptFunctionList);
QStringList scriptFunctions() const;
......
......@@ -859,6 +859,11 @@ bool ModelNode::hasNodeAbstracProperty(const PropertyName &name) const
return hasProperty(name) && internalNode()->property(name)->isNodeAbstractProperty();
}
bool ModelNode::hasDefaultNodeAbstracProperty() const
{
return hasProperty(metaInfo().defaultPropertyName()) && internalNode()->property(metaInfo().defaultPropertyName())->isNodeAbstractProperty();
}
bool ModelNode::hasNodeProperty(const PropertyName &name) const
{
return hasProperty(name) && internalNode()->property(name)->isNodeProperty();
......
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