Debugger: Use TreeModel for ModulesHandler

Change-Id: I831f71e7441330e2a6a7f3ddcf89a29517b3b91b
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
hjk
2015-01-13 22:42:30 +01:00
parent 54fda55b76
commit a8ea8d38fe
5 changed files with 193 additions and 230 deletions

View File

@@ -402,7 +402,8 @@ void PdbEngine::handleListModules(const PdbResponse &response)
{
GdbMi out;
out.fromString(response.data.trimmed());
Modules modules;
ModulesHandler *handler = modulesHandler();
handler->beginUpdateAll();
foreach (const GdbMi &item, out.children()) {
Module module;
module.moduleName = _(item["name"].data());
@@ -417,9 +418,9 @@ void PdbEngine::handleListModules(const PdbResponse &response)
path = _("(builtin)");
}
module.modulePath = path;
modules.append(module);
handler->updateModule(module);
}
modulesHandler()->setModules(modules);
handler->endUpdateAll();
}
void PdbEngine::requestModuleSymbols(const QString &moduleName)