Commit d3992542 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

QmlDesigner: Add isAliasExport to BindingProperty

Change-Id: I64ebe10541957f712b86a998e922a24111ad4a88
Reviewed-by: default avatarTim Jenssen <>
parent 473c7d65
......@@ -56,6 +56,8 @@ public:
bool isList() const;
QList<ModelNode> resolveToModelNodeList() const;
bool isAliasExport() const;
BindingProperty(const PropertyName &propertyName, const Internal::InternalNodePointer &internalNode, Model* model, AbstractView *view);
......@@ -197,6 +197,18 @@ QList<ModelNode> BindingProperty::resolveToModelNodeList() const
return returnList;
bool BindingProperty::isAliasExport() const
if (!isValid())
throw InvalidModelNodeException(__LINE__, __FUNCTION__, __FILE__);
return parentModelNode() == parentModelNode().view()->rootModelNode()
&& isDynamic()
&& dynamicTypeName() == "alias"
&& name() == expression()
&& parentModelNode().view()->modelNodeForId(expression()).isValid();
void BindingProperty::setDynamicTypeNameAndExpression(const TypeName &typeName, const QString &expression)
Internal::WriteLocker locker(model());
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