Qml Inspector: Implement and use setObjectIdList()

This way the items highlighted in Qt Creator are also marked in the
application when the inspector is active.

Change-Id: I89c3270cf5c108c1549ea01704bfd0e4b7a44ca5
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-26 16:32:01 +01:00
parent e4594eec13
commit d039237660
2 changed files with 13 additions and 3 deletions

View File

@@ -219,6 +219,8 @@ void QmlInspectorAgent::watchDataSelected(quint64 id)
if (id) {
QTC_ASSERT(m_debugIdLocations.keys().contains(id), return);
jumpToObjectDefinitionInEditor(m_debugIdLocations.value(id), id);
if (m_toolsClient)
m_toolsClient->setObjectIdList({ObjectReference(static_cast<int>(id))});
}
}