Commit 8d060151 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

QmlJSInspector: Sync crumble path selection back to the observer

Now selecting an item via the crumble path modifies the selection in the
observed QML application accordingly.

Reviewed-by: Christiaan Janssen
parent cf15e14e
......@@ -543,6 +543,7 @@ void InspectorUi::selectItems(const QList<QDeclarativeDebugObjectReference> &obj
m_propertyInspector->setCurrentObjects(selectionList);
populateCrumblePath(objref);
gotoObjectReferenceDefinition(objref);
m_clientProxy->setSelectedItemsByObjectId(selectionList);
return;
}
}
......@@ -761,11 +762,8 @@ void InspectorUi::setupDockWidgets()
void InspectorUi::crumblePathElementClicked(int debugId)
{
if (debugId != -1) {
QList<int> l;
l << debugId;
selectItems(l);
}
if (debugId != -1)
selectItems(QList<int>() << debugId);
}
bool InspectorUi::showExperimentalWarning()
......
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