forked from qt-creator/qt-creator
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:
@@ -219,7 +219,7 @@ ToolTipWatchItem::ToolTipWatchItem(TreeItem *item)
|
|||||||
type = model->data(idx.sibling(idx.row(), 2), Qt::DisplayRole).toString();
|
type = model->data(idx.sibling(idx.row(), 2), Qt::DisplayRole).toString();
|
||||||
iname = model->data(idx.sibling(idx.row(), 0), LocalsINameRole).toString();
|
iname = model->data(idx.sibling(idx.row(), 0), LocalsINameRole).toString();
|
||||||
valueColor = model->data(idx.sibling(idx.row(), 1), Qt::ForegroundRole).value<QColor>();
|
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();
|
expression = model->data(idx.sibling(idx.row(), 0), Qt::EditRole).toString();
|
||||||
foreach (TreeItem *child, item->children())
|
foreach (TreeItem *child, item->children())
|
||||||
appendChild(new ToolTipWatchItem(child));
|
appendChild(new ToolTipWatchItem(child));
|
||||||
@@ -270,7 +270,7 @@ public:
|
|||||||
|
|
||||||
WatchItem *it = m_engine->watchHandler()->findItem(iname);
|
WatchItem *it = m_engine->watchHandler()->findItem(iname);
|
||||||
QTC_ASSERT(it, return);
|
QTC_ASSERT(it, return);
|
||||||
it->fetchMore();
|
it->model()->fetchMore(it->index());
|
||||||
}
|
}
|
||||||
|
|
||||||
void restoreTreeModel(QXmlStreamReader &r);
|
void restoreTreeModel(QXmlStreamReader &r);
|
||||||
|
Reference in New Issue
Block a user