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:
hjk
2009-07-13 11:25:05 +02:00
parent e70bb220b1
commit 8c00de4536
5 changed files with 22 additions and 42 deletions

View File

@@ -2699,7 +2699,7 @@ bool GdbEngine::showToolTip()
WatchModel *model = handler->model(TooltipsWatch);
QString iname = tooltipINameForExpression(m_toolTipExpression);
model->setActiveData(iname);
WatchItem *item = model->findItem(iname, model->dummyRoot());
WatchItem *item = model->findItem(iname, model->rootItem());
if (!item) {
hideDebuggerToolTip();
return false;