Qml Inspector: Add some coding style

Change-Id: I94e0c19734bee06531756df21aee26354a5aeaeb
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-26 16:29:26 +01:00
parent 58e8e28181
commit f8f60a343b

View File

@@ -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());