Revert "Enabled the use of Debugger-specific watch/locals models."

This reverts commit abf5e3ddc3.
This commit is contained in:
hjk
2009-07-13 09:11:07 +02:00
parent d29bdf7126
commit ad46f1286f
29 changed files with 698 additions and 1799 deletions

View File

@@ -327,11 +327,9 @@ void WatchWindow::editItem(const QModelIndex &idx)
Q_UNUSED(idx); // FIXME
}
void WatchWindow::setModel(QAbstractItemModel *newModel)
void WatchWindow::setModel(QAbstractItemModel *model)
{
if (model() == newModel)
return;
QTreeView::setModel(newModel);
QTreeView::setModel(model);
setRootIsDecorated(true);
header()->setDefaultAlignment(Qt::AlignLeft);
@@ -339,7 +337,7 @@ void WatchWindow::setModel(QAbstractItemModel *newModel)
if (m_type != LocalsType)
header()->hide();
connect(newModel, SIGNAL(layoutChanged()), this, SLOT(resetHelper()));
connect(model, SIGNAL(layoutChanged()), this, SLOT(resetHelper()));
}
void WatchWindow::resetHelper()