Commit 47ede6dc authored by hjk's avatar hjk Committed by hjk

Debugger: Fix expansion of items in tool tips

Task-number: QTCREATORBUG-16947
Change-Id: Id38b7dbf2773f04d2298a7dfee68fc0f280806e4
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent c56b308a
......@@ -219,7 +219,7 @@ ToolTipWatchItem::ToolTipWatchItem(TreeItem *item)
type = model->data(idx.sibling(idx.row(), 2), Qt::DisplayRole).toString();
iname = model->data(idx.sibling(idx.row(), 0), LocalsINameRole).toString();
valueColor = model->data(idx.sibling(idx.row(), 1), Qt::ForegroundRole).value<QColor>();
expandable = item->hasChildren();
expandable = model->hasChildren(idx);
expression = model->data(idx.sibling(idx.row(), 0), Qt::EditRole).toString();
foreach (TreeItem *child, item->children())
appendChild(new ToolTipWatchItem(child));
......@@ -270,7 +270,7 @@ public:
WatchItem *it = m_engine->watchHandler()->findItem(iname);
QTC_ASSERT(it, return);
it->fetchMore();
it->model()->fetchMore(it->index());
}
void restoreTreeModel(QXmlStreamReader &r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment