forked from qt-creator/qt-creator
QmlDesigner: Add root item getter to ServerNodeInstance
Change-Id: I9f31390b478d8638038998682fb606dea5d1c81a Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -633,6 +633,11 @@ QList<ServerNodeInstance> ServerNodeInstance::childItems() const
|
||||
return m_nodeInstance->childItems();
|
||||
}
|
||||
|
||||
QQuickItem *ServerNodeInstance::rootQuickItem() const
|
||||
{
|
||||
return qobject_cast<QQuickItem*>(internalObject());
|
||||
}
|
||||
|
||||
QString ServerNodeInstance::id() const
|
||||
{
|
||||
return m_nodeInstance->id();
|
||||
|
||||
@@ -157,6 +157,7 @@ public:
|
||||
|
||||
QList<ServerNodeInstance> childItems() const;
|
||||
|
||||
QQuickItem *rootQuickItem() const;
|
||||
QString id() const;
|
||||
qint32 instanceId() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user