diff options
author | hjk <hjk@qt.io> | 2023-09-11 15:30:07 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2023-09-12 06:53:46 +0000 |
commit | d6dba7dc9f05d91697d103fc3520e4b8037d20d6 (patch) | |
tree | 59add58edee2e6dd6773918840f0107c2d5e93f5 /src/plugins/texteditor/behaviorsettings.cpp | |
parent | 7268f036de98f773052cb4a4135cf95ee1dc5456 (diff) |
Utils: Merge settingsutils.h into Store setup
Change-Id: I4f87400d3ff50869798a363f0d15aa77af0edf5c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/texteditor/behaviorsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/behaviorsettings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/texteditor/behaviorsettings.cpp b/src/plugins/texteditor/behaviorsettings.cpp index 0a63886716..955b7d6709 100644 --- a/src/plugins/texteditor/behaviorsettings.cpp +++ b/src/plugins/texteditor/behaviorsettings.cpp @@ -5,8 +5,6 @@ #include <coreplugin/icore.h> -#include <utils/settingsutils.h> - #include <QString> static const char mouseHidingKey[] = "MouseHiding"; @@ -35,13 +33,13 @@ BehaviorSettings::BehaviorSettings() : void BehaviorSettings::toSettings(const Key &category) const { - Utils::toSettings(groupPostfix, category, Core::ICore::settings(), this); + Utils::storeToSettings(category + groupPostfix, Core::ICore::settings(), toMap()); } void BehaviorSettings::fromSettings(const Key &category) { *this = BehaviorSettings(); - Utils::fromSettings(groupPostfix, category, Core::ICore::settings(), this); + fromMap(Utils::storeFromSettings(category + groupPostfix, Core::ICore::settings())); } Store BehaviorSettings::toMap() const |