summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/stackwindow.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-12-08 12:43:11 +0100
committerhjk <qtc-committer@nokia.com>2010-12-08 16:48:35 +0100
commitcfd2dbb3951667483e0c4bdd7626077fb2c78a46 (patch)
treef0491d6bfc10bec75d2894735d22f8f0030deabe /src/plugins/debugger/stackwindow.cpp
parentd7ca39da06b7f8a17f85305e6ef07b87a3da9527 (diff)
downloadqt-creator-cfd2dbb3951667483e0c4bdd7626077fb2c78a46.tar.gz
debugger: split debuggeragents.{h,cpp} int {memory,disassembler}agent.{h,cpp}
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r--src/plugins/debugger/stackwindow.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp
index d5bda5594b..dc383ed956 100644
--- a/src/plugins/debugger/stackwindow.cpp
+++ b/src/plugins/debugger/stackwindow.cpp
@@ -31,7 +31,6 @@
#include "stackhandler.h"
#include "debuggeractions.h"
-#include "debuggeragents.h"
#include "debuggerconstants.h"
#include "debuggercore.h"
#include "debuggerengine.h"
@@ -159,11 +158,9 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
else if (act == actAlwaysAdjust)
setAlwaysResizeColumnsToContents(!m_alwaysResizeColumnsToContents);
else if (act == actShowMemory)
- (void) new MemoryViewAgent(currentEngine(), address);
- else if (act == actShowDisassembler) {
- DisassemblerViewAgent *agent = new DisassemblerViewAgent(engine);
- agent->setFrame(frame, true, false);
- }
+ engine->openMemoryView(address);
+ else if (act == actShowDisassembler)
+ engine->openDisassemblerView(frame);
}
void StackWindow::copyContentsToClipboard()