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; ...@@ -45,8 +45,8 @@ class QmlPropertyChanges;
class QMLDESIGNERCORE_EXPORT QmlObjectNode : public QmlModelNodeFacade class QMLDESIGNERCORE_EXPORT QmlObjectNode : public QmlModelNodeFacade
{ {
public: public:
QmlObjectNode() : QmlModelNodeFacade() {} QmlObjectNode();
QmlObjectNode(const ModelNode &modelNode) : QmlModelNodeFacade(modelNode) {} QmlObjectNode(const ModelNode &modelNode);
bool hasNodeParent() const; bool hasNodeParent() const;
bool hasInstanceParent() const; bool hasInstanceParent() const;
......
...@@ -449,6 +449,15 @@ QmlItemNode QmlObjectNode::itemForInstance(const NodeInstance &instance) const ...@@ -449,6 +449,15 @@ QmlItemNode QmlObjectNode::itemForInstance(const NodeInstance &instance) const
return QmlItemNode(ModelNode(instance.modelNode(), qmlModelView())); return QmlItemNode(ModelNode(instance.modelNode(), qmlModelView()));
} }
QmlObjectNode::QmlObjectNode()
: QmlModelNodeFacade()
{
}
QmlObjectNode::QmlObjectNode(const ModelNode &modelNode)
: QmlModelNodeFacade(modelNode)
{
}
bool QmlObjectNode::hasNodeParent() const bool QmlObjectNode::hasNodeParent() const
{ {
return modelNode().hasParentProperty(); return modelNode().hasParentProperty();
......
Supports Markdown
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