diff options
author | hjk <hjk121@nokiamail.com> | 2014-07-28 14:23:52 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-07-28 15:48:15 +0200 |
commit | 5ac407eeccc446b9ba958cea2cc1fb47e4090dd4 (patch) | |
tree | 6e48d9fe5a335efc8d5208b5000885ba2db710ba /src/plugins/debugger/breakwindow.cpp | |
parent | 15fcdabc1d18f55a68a91251e8c581791c1aff8f (diff) | |
download | qt-creator-5ac407eeccc446b9ba958cea2cc1fb47e4090dd4.tar.gz |
Debugger: Reduce line noise
Move some function out of the DebuggerCore "namespace", to avoid one
indirection and removes clutter in the calling code.
Change-Id: I1c870d5c7eeade32fa63dedf581490fbb090cd6a
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/debugger/breakwindow.cpp')
-rw-r--r-- | src/plugins/debugger/breakwindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp index c6a5bd0c06..461729779e 100644 --- a/src/plugins/debugger/breakwindow.cpp +++ b/src/plugins/debugger/breakwindow.cpp @@ -655,7 +655,7 @@ MultiBreakPointsDialog::MultiBreakPointsDialog(QWidget *parent) : m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); QFormLayout *formLayout = new QFormLayout; - if (debuggerCore()->currentEngine()->hasCapability(BreakConditionCapability)) + if (currentEngine()->hasCapability(BreakConditionCapability)) formLayout->addRow(tr("&Condition:"), m_lineEditCondition); formLayout->addRow(tr("&Ignore count:"), m_spinBoxIgnoreCount); formLayout->addRow(tr("&Thread specification:"), m_lineEditThreadSpec); @@ -678,7 +678,7 @@ BreakTreeView::BreakTreeView() { setWindowIcon(QIcon(QLatin1String(":/debugger/images/debugger_breakpoints.png"))); setSelectionMode(QAbstractItemView::ExtendedSelection); - connect(debuggerCore()->action(UseAddressInBreakpointsView), + connect(action(UseAddressInBreakpointsView), SIGNAL(toggled(bool)), SLOT(showAddressColumn(bool))); } @@ -816,11 +816,11 @@ void BreakTreeView::contextMenuEvent(QContextMenuEvent *ev) menu.addSeparator(); menu.addAction(synchronizeAction); menu.addSeparator(); - menu.addAction(debuggerCore()->action(UseToolTipsInBreakpointsView)); - if (debuggerCore()->currentEngine()->hasCapability(MemoryAddressCapability)) - menu.addAction(debuggerCore()->action(UseAddressInBreakpointsView)); + menu.addAction(action(UseToolTipsInBreakpointsView)); + if (currentEngine()->hasCapability(MemoryAddressCapability)) + menu.addAction(action(UseAddressInBreakpointsView)); menu.addSeparator(); - menu.addAction(debuggerCore()->action(SettingsDialog)); + menu.addAction(action(SettingsDialog)); QAction *act = menu.exec(ev->globalPos()); |