QmlDebugger: Watchers

Reviewed-by: hjk
This commit is contained in:
Christiaan Janssen
2011-02-23 16:09:56 +01:00
parent 6b123c9869
commit fd66f68671
5 changed files with 40 additions and 6 deletions

View File

@@ -1656,5 +1656,26 @@ void WatchHandler::removeTooltip()
m_tooltips->emitAllChanged();
}
void WatchHandler::rebuildModel()
{
beginCycle();
const QList<WatchItem *> watches = m_watchers->rootItem()->children;
for (int i = watches.size() - 1; i >= 0; i--)
m_watchers->destroyItem(watches.at(i));
foreach (const QString &exp, watchedExpressions()) {
WatchData data;
data.exp = exp.toLatin1();
data.name = exp;
data.iname = watcherName(data.exp);
data.setAllUnneeded();
insertData(data);
}
endCycle();
}
} // namespace Internal
} // namespace Debugger