forked from qt-creator/qt-creator
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
This commit is contained in:
@@ -543,6 +543,7 @@ void InspectorUi::selectItems(const QList<QDeclarativeDebugObjectReference> &obj
|
|||||||
m_propertyInspector->setCurrentObjects(selectionList);
|
m_propertyInspector->setCurrentObjects(selectionList);
|
||||||
populateCrumblePath(objref);
|
populateCrumblePath(objref);
|
||||||
gotoObjectReferenceDefinition(objref);
|
gotoObjectReferenceDefinition(objref);
|
||||||
|
m_clientProxy->setSelectedItemsByObjectId(selectionList);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -761,11 +762,8 @@ void InspectorUi::setupDockWidgets()
|
|||||||
|
|
||||||
void InspectorUi::crumblePathElementClicked(int debugId)
|
void InspectorUi::crumblePathElementClicked(int debugId)
|
||||||
{
|
{
|
||||||
if (debugId != -1) {
|
if (debugId != -1)
|
||||||
QList<int> l;
|
selectItems(QList<int>() << debugId);
|
||||||
l << debugId;
|
|
||||||
selectItems(l);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InspectorUi::showExperimentalWarning()
|
bool InspectorUi::showExperimentalWarning()
|
||||||
|
|||||||
Reference in New Issue
Block a user