summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/breakhandler.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2021-03-01 08:59:44 +0100
committerhjk <hjk@qt.io>2021-03-03 07:39:17 +0000
commit93a58039561b89181fa2ca36a22468d4771510a9 (patch)
tree13758170412113b30d1774ad41ff6b36d7dca6a8 /src/plugins/debugger/breakhandler.cpp
parent2252b22b10eab8a0d853674db34f431121e40d34 (diff)
downloadqt-creator-93a58039561b89181fa2ca36a22468d4771510a9.tar.gz
Debugger: Aspectify settings
Change-Id: I527be79965250b82a0928171b17aa93bac9fa2a0 Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/debugger/breakhandler.cpp')
-rw-r--r--src/plugins/debugger/breakhandler.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 73f0f518cf..23bd120e00 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -51,7 +51,6 @@
#include <utils/hostosinfo.h>
#include <utils/pathchooser.h>
#include <utils/qtcassert.h>
-#include <utils/savedaction.h>
#include <utils/theme/theme.h>
#if USE_BREAK_MODEL_TEST
@@ -1121,7 +1120,7 @@ QVariant BreakpointItem::data(int column, int role) const
break;
}
- if (role == Qt::ToolTipRole && boolSetting(UseToolTipsInBreakpointsView))
+ if (role == Qt::ToolTipRole && debuggerSettings()->useToolTipsInBreakpointsView.value())
return toolTip();
return QVariant();
@@ -1698,8 +1697,8 @@ bool BreakHandler::contextMenuEvent(const ItemViewEvent &ev)
menu->addSeparator();
- menu->addAction(action(UseToolTipsInBreakpointsView)->action());
- menu->addAction(action(SettingsDialog)->action());
+ menu->addAction(debuggerSettings()->useToolTipsInBreakpointsView.action());
+ menu->addAction(debuggerSettings()->settingsDialog.action());
menu->popup(ev.globalPos());
@@ -2225,7 +2224,7 @@ QVariant GlobalBreakpointItem::data(int column, int role) const
break;
}
- if (role == Qt::ToolTipRole && boolSetting(UseToolTipsInBreakpointsView))
+ if (role == Qt::ToolTipRole && debuggerSettings()->useToolTipsInBreakpointsView.value())
return toolTip();
return QVariant();
@@ -2502,7 +2501,7 @@ void BreakpointManager::toggleBreakpoint(const ContextData &location, const QStr
BreakpointParameters data;
if (location.type == LocationByFile) {
data.type = BreakpointByFileAndLine;
- if (boolSetting(BreakpointsFullPathByDefault))
+ if (debuggerSettings()->breakpointsFullPathByDefault.value())
data.pathUsage = BreakpointUseFullPath;
data.tracepoint = !tracePointMessage.isEmpty();
data.message = tracePointMessage;
@@ -2684,8 +2683,8 @@ bool BreakpointManager::contextMenuEvent(const ItemViewEvent &ev)
menu->addSeparator();
- menu->addAction(action(UseToolTipsInBreakpointsView)->action());
- menu->addAction(action(SettingsDialog)->action());
+ menu->addAction(debuggerSettings()->useToolTipsInBreakpointsView.action());
+ menu->addAction(debuggerSettings()->settingsDialog.action());
menu->popup(ev.globalPos());