forked from qt-creator/qt-creator
QmlJSInspector: Select only current selected item
Change-Id: Ibb52e8f1c065d37accc022740ef50b2817d52771 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -615,6 +615,7 @@ void InspectorUi::showObject(const QmlDebugObjectReference &obj)
|
|||||||
Debugger::QmlAdapter *qmlAdapter = m_clientProxy->qmlAdapter();
|
Debugger::QmlAdapter *qmlAdapter = m_clientProxy->qmlAdapter();
|
||||||
if (qmlAdapter)
|
if (qmlAdapter)
|
||||||
qmlAdapter->setCurrentSelectedDebugInfo(obj.debugId(), displayName(obj));
|
qmlAdapter->setCurrentSelectedDebugInfo(obj.debugId(), displayName(obj));
|
||||||
|
m_clientProxy->setSelectedItemsByDebugId(QList<int>() << obj.debugId());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InspectorUi::isRoot(const QmlDebugObjectReference &obj) const
|
bool InspectorUi::isRoot(const QmlDebugObjectReference &obj) const
|
||||||
@@ -832,7 +833,6 @@ void InspectorUi::crumblePathElementClicked(const QVariant &data)
|
|||||||
|
|
||||||
m_onCrumblePathClicked = true;
|
m_onCrumblePathClicked = true;
|
||||||
selectItems(debugIds);
|
selectItems(debugIds);
|
||||||
m_clientProxy->setSelectedItemsByDebugId(debugIds);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool InspectorUi::showExperimentalWarning()
|
bool InspectorUi::showExperimentalWarning()
|
||||||
|
Reference in New Issue
Block a user