forked from qt-creator/qt-creator
Debugger: Make watch model root a WatchItem
QmlEngine::pdateCurrentContext() currently relies on being able to access the 'name' member. Change-Id: I75675681407402667da1cb82d3589980d92554a2 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -408,12 +408,13 @@ WatchModel::WatchModel(WatchHandler *handler, DebuggerEngine *engine)
|
||||
m_tooltipRoot = new WatchItem;
|
||||
m_tooltipRoot->iname = "tooltip";
|
||||
m_tooltipRoot->name = tr("Tooltip");
|
||||
auto root = rootItem();
|
||||
auto root = new WatchItem;
|
||||
root->appendChild(m_localsRoot);
|
||||
root->appendChild(m_inspectorRoot);
|
||||
root->appendChild(m_watchRoot);
|
||||
root->appendChild(m_returnRoot);
|
||||
root->appendChild(m_tooltipRoot);
|
||||
setRootItem(root);
|
||||
|
||||
m_requestUpdateTimer.setSingleShot(true);
|
||||
connect(&m_requestUpdateTimer, &QTimer::timeout,
|
||||
|
||||
Reference in New Issue
Block a user