debugger: make memory view updatable

Task-number: QTCREATORBUG-3242
This commit is contained in:
hjk
2010-12-08 14:08:35 +01:00
parent cfd2dbb395
commit 7cd3272282
6 changed files with 24 additions and 1 deletions

View File

@@ -1027,6 +1027,7 @@ public slots:
void languagesChanged();
void showStatusMessage(const QString &msg, int timeout = -1);
void openMemoryEditor();
void updateMemoryEditors();
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
@@ -2433,6 +2434,16 @@ 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;