forked from qt-creator/qt-creator
QmlDesigner: Add hasDefaultNodeAbstracProperty to ModelNode
Change-Id: I421686cdc9faf2a9dadad3162cfbfc6793ab3caf Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -139,10 +139,10 @@ public:
|
|||||||
bool hasVariantProperty(const PropertyName &name) const;
|
bool hasVariantProperty(const PropertyName &name) const;
|
||||||
bool hasBindingProperty(const PropertyName &name) const;
|
bool hasBindingProperty(const PropertyName &name) const;
|
||||||
bool hasNodeAbstracProperty(const PropertyName &name) const;
|
bool hasNodeAbstracProperty(const PropertyName &name) const;
|
||||||
|
bool hasDefaultNodeAbstracProperty() const;
|
||||||
bool hasNodeProperty(const PropertyName &name) const;
|
bool hasNodeProperty(const PropertyName &name) const;
|
||||||
bool hasNodeListProperty(const PropertyName &name) const;
|
bool hasNodeListProperty(const PropertyName &name) const;
|
||||||
|
|
||||||
|
|
||||||
void setScriptFunctions(const QStringList &scriptFunctionList);
|
void setScriptFunctions(const QStringList &scriptFunctionList);
|
||||||
QStringList scriptFunctions() const;
|
QStringList scriptFunctions() const;
|
||||||
|
|
||||||
|
@@ -859,6 +859,11 @@ bool ModelNode::hasNodeAbstracProperty(const PropertyName &name) const
|
|||||||
return hasProperty(name) && internalNode()->property(name)->isNodeAbstractProperty();
|
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
|
bool ModelNode::hasNodeProperty(const PropertyName &name) const
|
||||||
{
|
{
|
||||||
return hasProperty(name) && internalNode()->property(name)->isNodeProperty();
|
return hasProperty(name) && internalNode()->property(name)->isNodeProperty();
|
||||||
|
Reference in New Issue
Block a user