forked from qt-creator/qt-creator
QmlJSInspector: Show root in property inspector
Change-Id: I281ef1f74e8d8128b91c426057c4d727a77543a6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
250b612dd0
commit
16d5b5165c
@@ -510,6 +510,19 @@ void ClientProxy::fetchContextObjectRecursive(
|
||||
}
|
||||
}
|
||||
|
||||
void ClientProxy::insertObjectInTreeIfNeeded(const QmlDebugObjectReference &object)
|
||||
{
|
||||
if (!m_rootObjects.contains(object))
|
||||
return;
|
||||
int count = m_rootObjects.count();
|
||||
for (int i = 0; i < count; i++) {
|
||||
if (m_rootObjects[i].parentId() < 0 && m_rootObjects[i].insertObjectInTree(object)) {
|
||||
m_rootObjects.removeOne(object);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ClientProxy::onResult(quint32 queryId, const QVariant &value, const QByteArray &type)
|
||||
{
|
||||
if (type == "FETCH_OBJECT_R") {
|
||||
|
||||
Reference in New Issue
Block a user