diff options
author | hjk <qtc-committer@nokia.com> | 2010-11-10 16:33:11 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-11-15 12:09:25 +0100 |
commit | 8ae541b36fc342c8f02c4b674a68a21c0ed8034d (patch) | |
tree | a0e0de05d986987110aec1783d213dfb16337567 /src/plugins/debugger/stackwindow.cpp | |
parent | 33bae0d7845e546c019d9bda3af44c3411ebcacb (diff) | |
download | qt-creator-8ae541b36fc342c8f02c4b674a68a21c0ed8034d.tar.gz |
debugger: Refactor breakpoint handling.
The breakpoints are now (fairly) tightly guarded by the BreakpointHandler.
Engines and Views are only supposed to refer to them by id. They also have
individual states now. The breakpoint data is split into a "user requested"
"fixed" part in BreakpointData and the engines' acknowledged data in a new
struct BreakpointResponse.
TODO: Move m_state and m_engine members to BreakpointResponse. Fix regressions
in the marker handling.
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index 007fe9758b..25f5cae841 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -61,7 +61,7 @@ StackWindow::StackWindow(QWidget *parent) setAttribute(Qt::WA_MacShowFocusRect, false); setFrameStyle(QFrame::NoFrame); - QAction *act = theDebuggerAction(UseAlternatingRowColors); + QAction *act = debuggerCore()->action(UseAlternatingRowColors); setWindowTitle(tr("Stack")); setAlternatingRowColors(act->isChecked()); @@ -76,11 +76,11 @@ StackWindow::StackWindow(QWidget *parent) SLOT(rowActivated(QModelIndex))); connect(act, SIGNAL(toggled(bool)), SLOT(setAlternatingRowColorsHelper(bool))); - connect(theDebuggerAction(UseAddressInStackView), SIGNAL(toggled(bool)), + connect(debuggerCore()->action(UseAddressInStackView), SIGNAL(toggled(bool)), SLOT(showAddressColumn(bool))); - connect(theDebuggerAction(ExpandStack), SIGNAL(triggered()), + connect(debuggerCore()->action(ExpandStack), SIGNAL(triggered()), SLOT(reloadFullStack())); - connect(theDebuggerAction(MaximalStackDepth), SIGNAL(triggered()), + connect(debuggerCore()->action(MaximalStackDepth), SIGNAL(triggered()), SLOT(reloadFullStack())); } @@ -107,13 +107,13 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) const quint64 address = frame.address; QMenu menu; - menu.addAction(theDebuggerAction(ExpandStack)); + menu.addAction(debuggerCore()->action(ExpandStack)); QAction *actCopyContents = menu.addAction(tr("Copy Contents to Clipboard")); actCopyContents->setEnabled(model() != 0); if (engineCapabilities & CreateFullBacktraceCapability) - menu.addAction(theDebuggerAction(CreateFullBacktrace)); + menu.addAction(debuggerCore()->action(CreateFullBacktrace)); QAction *actShowMemory = menu.addAction(QString()); if (address == 0) { @@ -135,9 +135,9 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) menu.addSeparator(); #if 0 // @TODO: not implemented - menu.addAction(theDebuggerAction(UseToolTipsInStackView)); + menu.addAction(debuggerCore()->action(UseToolTipsInStackView)); #endif - menu.addAction(theDebuggerAction(UseAddressInStackView)); + menu.addAction(debuggerCore()->action(UseAddressInStackView)); QAction *actAdjust = menu.addAction(tr("Adjust Column Widths to Contents")); @@ -148,7 +148,7 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev) menu.addSeparator(); - menu.addAction(theDebuggerAction(SettingsDialog)); + menu.addAction(debuggerCore()->action(SettingsDialog)); QAction *act = menu.exec(ev->globalPos()); |