forked from qt-creator/qt-creator
QmlDesigner: Remove rootQmlItemNode
Change-Id: I5a3ae428b210d1f09d8a3239fe56d887f92dac4c Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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:
|
|||||||
QmlModelView(QObject *parent) ;
|
QmlModelView(QObject *parent) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QmlItemNode rootQmlItemNode() const;
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //QmlDesigner
|
} //QmlDesigner
|
||||||
|
@@ -55,10 +55,4 @@ QmlModelView::QmlModelView(QObject *parent)
|
|||||||
: AbstractView(parent)
|
: AbstractView(parent)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
QmlItemNode QmlModelView::rootQmlItemNode() const
|
|
||||||
{
|
|
||||||
return QmlItemNode(rootModelNode());
|
|
||||||
}
|
|
||||||
|
|
||||||
} //QmlDesigner
|
} //QmlDesigner
|
||||||
|
Reference in New Issue
Block a user