aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/breakwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <[email protected]>2009-04-14 15:04:19 +0200
committerFriedemann Kleint <[email protected]>2009-04-14 15:04:19 +0200
commitd4ccc16f9fe5dcadeddf0a2d49cdeff409812deb (patch)
treef9b6b83334422c559914f50a6fe8673e7134d3d5 /src/plugins/debugger/breakwindow.cpp
parentb95af44c0dbdc9ff367e841cbe262cdc10fc292e (diff)
Implement disassembler for cdb.
Filter debugging output correctly, some glitches. Extract base class for debugging output to be able to intercept debugging output for other purposes (such as disassembling).
Diffstat (limited to 'src/plugins/debugger/breakwindow.cpp')
-rw-r--r--src/plugins/debugger/breakwindow.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index a571fafae50..a93885abcb1 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -84,16 +84,17 @@ void BreakWindow::resizeEvent(QResizeEvent *ev)
void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
{
QMenu menu;
- QModelIndex index = indexAt(ev->pos());
+ const QModelIndex index = indexAt(ev->pos());
+ const bool indexIsValid = index.isValid();
QAction *act0 = new QAction(tr("Delete breakpoint"), &menu);
- act0->setEnabled(index.isValid());
+ act0->setEnabled(indexIsValid);
QAction *act1 = new QAction(tr("Adjust column widths to contents"), &menu);
QAction *act2 = new QAction(tr("Always adjust column widths to contents"), &menu);
act2->setCheckable(true);
act2->setChecked(m_alwaysResizeColumnsToContents);
QAction *act3 = new QAction(tr("Edit condition..."), &menu);
- act0->setEnabled(index.isValid());
- QAction *act4 = new QAction(tr("Syncronize breakpoints"), &menu);
+ act3->setEnabled(indexIsValid);
+ QAction *act4 = new QAction(tr("Synchronize breakpoints"), &menu);
menu.addAction(act0);
menu.addAction(act3);