Commit a6c43c63 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Remove rootQmlItemNode

Change-Id: I5a3ae428b210d1f09d8a3239fe56d887f92dac4c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 8e54a2a5
...@@ -180,7 +180,7 @@ void StatesEditorView::createNewState() ...@@ -180,7 +180,7 @@ void StatesEditorView::createNewState()
void StatesEditorView::addState() void StatesEditorView::addState()
{ {
// can happen when root node is e.g. a ListModel // can happen when root node is e.g. a ListModel
if (!rootQmlItemNode().isValid()) if (!QmlItemNode::isValidQmlItemNode(rootModelNode()))
return; return;
QStringList modelStateNames = rootStateGroup().names(); QStringList modelStateNames = rootStateGroup().names();
......
...@@ -51,11 +51,6 @@ public: ...@@ -51,11 +51,6 @@ public:
QmlModelView(QObject *parent) ; QmlModelView(QObject *parent) ;
QmlItemNode rootQmlItemNode() const;
}; };
} //QmlDesigner } //QmlDesigner
......
...@@ -55,10 +55,4 @@ QmlModelView::QmlModelView(QObject *parent) ...@@ -55,10 +55,4 @@ QmlModelView::QmlModelView(QObject *parent)
: AbstractView(parent) : AbstractView(parent)
{ {
} }
QmlItemNode QmlModelView::rootQmlItemNode() const
{
return QmlItemNode(rootModelNode());
}
} //QmlDesigner } //QmlDesigner
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