forked from qt-creator/qt-creator
Debugger: Make the time stamp recording option work for single items
Should help to drill down to individual expensive dumpers. Change-Id: I983ba075231784f71dd9d5c3bda375a3ee508bf6 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -53,6 +53,9 @@ WatchTreeView::WatchTreeView(WatchType type)
|
||||
|
||||
connect(this, &QTreeView::expanded, this, &WatchTreeView::expandNode);
|
||||
connect(this, &QTreeView::collapsed, this, &WatchTreeView::collapseNode);
|
||||
|
||||
connect(action(LogTimeStamps), &QAction::triggered,
|
||||
this, &WatchTreeView::updateTimeColumn);
|
||||
}
|
||||
|
||||
void WatchTreeView::expandNode(const QModelIndex &idx)
|
||||
@@ -96,6 +99,14 @@ void WatchTreeView::setModel(QAbstractItemModel *model)
|
||||
connect(watchModel, &WatchModelBase::updateFinished,
|
||||
this, &WatchTreeView::hideProgressIndicator);
|
||||
}
|
||||
|
||||
updateTimeColumn();
|
||||
}
|
||||
|
||||
void WatchTreeView::updateTimeColumn()
|
||||
{
|
||||
if (header())
|
||||
header()->setSectionHidden(WatchModelBase::TimeColumn, !boolSetting(LogTimeStamps));
|
||||
}
|
||||
|
||||
void WatchTreeView::handleItemIsExpanded(const QModelIndex &idx)
|
||||
|
||||
Reference in New Issue
Block a user