forked from qt-creator/qt-creator
debugger: remove unnecessary first level in WatchModel
There used to be a single 'Locals' etc item of the true root that was never shown anyway. Removing this also renders using setRootIndex() in WatchWindow unnecessary.
This commit is contained in:
@@ -144,12 +144,6 @@ void WatchWindow::collapseNode(const QModelIndex &idx)
|
||||
model()->setData(idx, false, ExpandedRole);
|
||||
}
|
||||
|
||||
void WatchWindow::reset()
|
||||
{
|
||||
QTreeView::reset();
|
||||
setRootIndex(model()->index(0, 0, QModelIndex()));
|
||||
}
|
||||
|
||||
void WatchWindow::keyPressEvent(QKeyEvent *ev)
|
||||
{
|
||||
if (ev->key() == Qt::Key_Delete && m_type == WatchersType) {
|
||||
|
||||
Reference in New Issue
Block a user