aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmldebug
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-11-15 17:14:48 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-11-21 10:48:02 +0000
commiteac0ab4974454af5a4b7d2c77c13025fba9be597 (patch)
tree8c03f71994142f433ac15bcd011cddaf8b93ca7c /src/libs/qmldebug
parent5170dd08585d40952a83e00571072fe32432a2fd (diff)
Debugger: Add multi-engine support for QML inspector
The engines are listed as virtual root items for their contents. This way, when we need an engineID we can walk up the tree of watch items and the last valid one will be the engine. Fixes: QTCREATORBUG-21486 Change-Id: Ib110457dc65523c1e2b75aa073f6cd399bbc9532 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/qmldebug')
-rw-r--r--src/libs/qmldebug/baseenginedebugclient.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/qmldebug/baseenginedebugclient.h b/src/libs/qmldebug/baseenginedebugclient.h
index 300bb85c41..21ad288bc8 100644
--- a/src/libs/qmldebug/baseenginedebugclient.h
+++ b/src/libs/qmldebug/baseenginedebugclient.h
@@ -137,8 +137,8 @@ public:
: m_debugId(-1), m_parentId(-1), m_contextDebugId(-1), m_needsMoreData(false)
{
}
- explicit ObjectReference(int id)
- : m_debugId(id), m_parentId(-1), m_contextDebugId(-1), m_needsMoreData(false)
+ ObjectReference(int id, const QString &name = QString())
+ : m_debugId(id), m_parentId(-1), m_name(name), m_contextDebugId(-1), m_needsMoreData(false)
{
}
ObjectReference(int id, int parentId, const FileReference &source)