aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/qml/qmlinspectoragent.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/qml/qmlinspectoragent.h')
-rw-r--r--src/plugins/debugger/qml/qmlinspectoragent.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/plugins/debugger/qml/qmlinspectoragent.h b/src/plugins/debugger/qml/qmlinspectoragent.h
index 244c054be6..dd0e999e5b 100644
--- a/src/plugins/debugger/qml/qmlinspectoragent.h
+++ b/src/plugins/debugger/qml/qmlinspectoragent.h
@@ -61,7 +61,7 @@ public:
void enableTools(bool enable);
private:
- bool selectObjectInTree(int debugId);
+ void selectObjectsInTree(const QList<int> &debugIds);
void addObjectWatch(int objectDebugId);
void reloadEngines();
@@ -99,11 +99,8 @@ private:
void onReloaded();
void jumpToObjectDefinitionInEditor(const QmlDebug::FileReference &objSource);
- enum SelectionTarget { NoTarget, ToolTarget, EditorTarget };
- void selectObject(int debugId, const QmlDebug::FileReference &source,
- SelectionTarget target);
+ void selectObjects(const QList<int> &debugIds, const QmlDebug::FileReference &source);
-private:
QPointer<QmlEngine> m_qmlEngine;
QmlDebug::QmlEngineDebugClient *m_engineClient = nullptr;
QmlDebug::QmlToolsClient *m_toolsClient = nullptr;
@@ -111,8 +108,7 @@ private:
quint32 m_engineQueryId = 0;
quint32 m_rootContextQueryId = 0;
- int m_objectToSelect = WatchItem::InvalidId;
- int m_debugIdToSelect = WatchItem::InvalidId;
+ QList<int> m_objectsToSelect;
QList<quint32> m_objectTreeQueryIds;
QStack<QmlDebug::ObjectReference> m_objectStack;
@@ -124,8 +120,6 @@ private:
QList<int> m_fetchDataIds;
QTimer m_delayQueryTimer;
- SelectionTarget m_targetToSync = NoTarget;
-
// toolbar
Core::Context m_inspectorToolsContext;
QAction *m_selectAction = nullptr;