Debugger: Introduce a tree level above stack frames

This level is meant to take the role of current thread handler
in the long run, allowing per-thread stackviews in each engine.

For now, the additional level holds just a single, invisible
dummy item playing the role of a "current thread".

Change-Id: Ief6131500fc1aa8902f2313038a65840b80b495b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-06-24 14:54:47 +02:00
parent c39f2866c7
commit 32bbf2a3b3
8 changed files with 117 additions and 76 deletions

View File

@@ -49,6 +49,10 @@ StackTreeView::StackTreeView(QWidget *parent)
void StackTreeView::setModel(QAbstractItemModel *model)
{
BaseTreeView::setModel(model);
if (model)
setRootIndex(model->index(0, 0, QModelIndex()));
connect(static_cast<StackHandler*>(model), &StackHandler::stackChanged,
this, [this]() {
if (!m_contentsAdjusted)