aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/cdb
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-07-06 09:57:16 +0200
committerhjk <[email protected]>2023-07-07 09:02:29 +0000
commit91513a53ddfcd20beb219a235da9f603fafff742 (patch)
tree372e0fff25e0c220b8cd6e15eb93d6b598c92739 /src/plugins/debugger/cdb
parent9f1b56e91aa34bb706bf2887d1cd06ca5d5ed376 (diff)
Utils: Make aspect settings access implicit
Generally, aspects should use fromMap/toMap, but some older pages use {from,to}Settings with always the same ICore::settings(). To make that less intrusive on the user code side, make that globally implicit. Task-number: QTCREATORBUG-29167 Change-Id: I29a8e23a31eb8061bb143e93931a07c6741eb7f9 Reviewed-by: Christian Stenger <[email protected]>
Diffstat (limited to 'src/plugins/debugger/cdb')
-rw-r--r--src/plugins/debugger/cdb/cdboptionspage.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/debugger/cdb/cdboptionspage.cpp b/src/plugins/debugger/cdb/cdboptionspage.cpp
index 8f21d670964..f47e275fd15 100644
--- a/src/plugins/debugger/cdb/cdboptionspage.cpp
+++ b/src/plugins/debugger/cdb/cdboptionspage.cpp
@@ -10,8 +10,6 @@
#include <debugger/debuggertr.h>
#include <debugger/shared/cdbsymbolpathlisteditor.h>
-#include <coreplugin/icore.h>
-
#include <utils/aspects.h>
#include <utils/layoutbuilder.h>
@@ -215,7 +213,8 @@ CdbOptionsPageWidget::CdbOptionsPageWidget()
void CdbOptionsPageWidget::apply()
{
- m_group.apply(); m_group.writeSettings(Core::ICore::settings());
+ m_group.apply();
+ m_group.writeSettings();
debuggerSettings()->cdbBreakEvents.setValue(m_breakEventWidget->breakEvents());
}
@@ -269,7 +268,7 @@ void CdbPathsPageWidget::apply()
{
debuggerSettings()->cdbSymbolPaths.setValue(m_symbolPaths->pathList());
debuggerSettings()->cdbSourcePaths.setValue(m_sourcePaths->pathList());
- m_group.writeSettings(Core::ICore::settings());
+ m_group.writeSettings();
}
void CdbPathsPageWidget::finish()