forked from qt-creator/qt-creator
Qml Inspector: Add some coding style
Change-Id: I94e0c19734bee06531756df21aee26354a5aeaeb Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -874,12 +874,10 @@ void QmlInspectorAgent::jumpToObjectDefinitionInEditor(
|
||||
}
|
||||
}
|
||||
|
||||
void QmlInspectorAgent::selectObject(const ObjectReference &obj,
|
||||
SelectionTarget target)
|
||||
void QmlInspectorAgent::selectObject(const ObjectReference &obj, SelectionTarget target)
|
||||
{
|
||||
if (m_toolsClient && target == ToolTarget)
|
||||
m_toolsClient->setObjectIdList(
|
||||
QList<ObjectReference>() << obj);
|
||||
m_toolsClient->setObjectIdList(QList<ObjectReference>() << obj);
|
||||
|
||||
if (target == EditorTarget)
|
||||
jumpToObjectDefinitionInEditor(obj.source());
|
||||
|
||||
Reference in New Issue
Block a user