forked from qt-creator/qt-creator
debugger: move MemoryViewAgent ownership to DebuggerEngine
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user