debugger: make 'watch' item work with new dumpers

This commit is contained in:
hjk
2009-12-04 13:22:39 +01:00
parent b0640b9a7a
commit ef9db9cf79
4 changed files with 67 additions and 19 deletions

View File

@@ -644,7 +644,8 @@ static QString formattedValue(const WatchData &data,
bool WatchModel::canFetchMore(const QModelIndex &index) const
{
return !m_inExtraLayoutChanged && index.isValid() && !m_fetchTriggered.contains(watchItem(index)->iname);
return !m_inExtraLayoutChanged && index.isValid()
&& !m_fetchTriggered.contains(watchItem(index)->iname);
}
void WatchModel::fetchMore(const QModelIndex &index)
@@ -1389,10 +1390,9 @@ void WatchHandler::loadWatchers()
//reinitializeWatchersHelper();
}
void WatchHandler::saveWatchers()
QStringList WatchHandler::watchedExpressions() const
{
//qDebug() << "SAVE WATCHERS: " << m_watchers;
// Filter out valid watchers.
// Filter out invalid watchers.
QStringList watcherNames;
QHashIterator<QString, int> it(m_watcherNames);
while (it.hasNext()) {
@@ -1401,7 +1401,13 @@ void WatchHandler::saveWatchers()
if (!watcherName.isEmpty() && watcherName != watcherEditPlaceHolder())
watcherNames.push_back(watcherName);
}
m_manager->setSessionValue("Watchers", QVariant(watcherNames));
return watcherNames;
}
void WatchHandler::saveWatchers()
{
//qDebug() << "SAVE WATCHERS: " << m_watchers;
m_manager->setSessionValue("Watchers", QVariant(watchedExpressions()));
}
void WatchHandler::loadTypeFormats()