Debugger: Fix expansion of items in tool tips

Task-number: QTCREATORBUG-16947
Change-Id: Id38b7dbf2773f04d2298a7dfee68fc0f280806e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2016-09-23 14:54:34 +02:00
committed by hjk
parent c56b308ab5
commit 47ede6dc42

View File

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