Commit 3a0af1ce authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Refactor inline functions in QmlObjectNode



Change-Id: Ibc80c36efffb539417817c84f8c0cd19ccd1770d
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 44bbfa3b
......@@ -45,8 +45,8 @@ class QmlPropertyChanges;
class QMLDESIGNERCORE_EXPORT QmlObjectNode : public QmlModelNodeFacade
{
public:
QmlObjectNode() : QmlModelNodeFacade() {}
QmlObjectNode(const ModelNode &modelNode) : QmlModelNodeFacade(modelNode) {}
QmlObjectNode();
QmlObjectNode(const ModelNode &modelNode);
bool hasNodeParent() const;
bool hasInstanceParent() const;
......
......@@ -449,6 +449,15 @@ QmlItemNode QmlObjectNode::itemForInstance(const NodeInstance &instance) const
return QmlItemNode(ModelNode(instance.modelNode(), qmlModelView()));
}
QmlObjectNode::QmlObjectNode()
: QmlModelNodeFacade()
{
}
QmlObjectNode::QmlObjectNode(const ModelNode &modelNode)
: QmlModelNodeFacade(modelNode)
{
}
bool QmlObjectNode::hasNodeParent() const
{
return modelNode().hasParentProperty();
......
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