debugger: move MemoryViewAgent ownership to DebuggerEngine

This commit is contained in:
hjk
2010-12-13 18:17:31 +01:00
parent 8e5eaf821f
commit 8926f7169d
7 changed files with 27 additions and 24 deletions

View File

@@ -1027,7 +1027,6 @@ public slots:
void languagesChanged();
void showStatusMessage(const QString &msg, int timeout = -1);
void openMemoryEditor();
void updateMemoryEditors();
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
@@ -2426,16 +2425,6 @@ void DebuggerPluginPrivate::openMemoryEditor()
currentEngine()->openMemoryView(dialog.address());
}
void DebuggerPluginPrivate::updateMemoryEditors()
{
EditorManager *editorManager = EditorManager::instance();
QTC_ASSERT(editorManager, return);
foreach (IEditor *editor, editorManager->openedEditors()) {
if (editor->property(Constants::OPENED_WITH_MEMORY).toBool())
QMetaObject::invokeMethod(editor->widget(), "updateContents");
}
}
void DebuggerPluginPrivate::coreShutdown()
{
m_shuttingDown = true;