Commit 4fb83d32 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Add QmlModelNodeFacade::hasModelNode



Change-Id: I5f5587a14e7586c3d6b10c1a7b3ae7a5af0048b2
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 932ff35d
......@@ -44,6 +44,7 @@ public:
operator ModelNode() const;
ModelNode modelNode();
const ModelNode modelNode() const;
bool hasModelNode() const;
static bool isValidQmlModelNodeFacade(const ModelNode &modelNode);
virtual bool isValid() const;
virtual ~QmlModelNodeFacade();
......
......@@ -75,6 +75,11 @@ const ModelNode QmlModelNodeFacade::modelNode() const
return m_modelNode;
}
bool QmlModelNodeFacade::hasModelNode() const
{
return m_modelNode.isValid();
}
bool QmlModelNodeFacade::isValid() const
{
return isValidQmlModelNodeFacade(m_modelNode);
......
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