summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefLanguage.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 09:06:00 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-07 14:37:18 -0700
commit2ecbea3d24529b9776acb620c82af04a076b817f (patch)
tree0b0fc4eec864ff79db095d775341085cb1315895 /core/settings/qPrefLanguage.cpp
parentdb57a633d587444a7196c8d4274b8f327e77ceba (diff)
downloadsubsurface-2ecbea3d24529b9776acb620c82af04a076b817f.tar.gz
qPref: use helper function to ensure key/name grouping
We had a couple of instances of names being incorrectly merged with their group, this should handle that better. It's a bit of a big hammer to use, but it seems to work (and it makes it easy to then git grep for cases that don't use the new helper function. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefLanguage.cpp')
-rw-r--r--core/settings/qPrefLanguage.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/settings/qPrefLanguage.cpp b/core/settings/qPrefLanguage.cpp
index 75327ce32..6e8708175 100644
--- a/core/settings/qPrefLanguage.cpp
+++ b/core/settings/qPrefLanguage.cpp
@@ -26,18 +26,18 @@ void qPrefLanguage::loadSync(bool doSync)
disk_use_system_language(doSync);
}
-HANDLE_PREFERENCE_TXT(Language, "/date_format", date_format);
+HANDLE_PREFERENCE_TXT(Language, "date_format", date_format);
-HANDLE_PREFERENCE_BOOL(Language,"/date_format_override", date_format_override);
+HANDLE_PREFERENCE_BOOL(Language,"date_format_override", date_format_override);
-HANDLE_PREFERENCE_TXT(Language, "/date_format_short", date_format_short);
+HANDLE_PREFERENCE_TXT(Language, "date_format_short", date_format_short);
-HANDLE_PREFERENCE_TXT_EXT(Language, "/UiLanguage", language, locale.);
+HANDLE_PREFERENCE_TXT_EXT(Language, "UiLanguage", language, locale.);
-HANDLE_PREFERENCE_TXT_EXT(Language, "/UiLangLocale", lang_locale, locale.);
+HANDLE_PREFERENCE_TXT_EXT(Language, "UiLangLocale", lang_locale, locale.);
-HANDLE_PREFERENCE_TXT(Language, "/time_format", time_format);
+HANDLE_PREFERENCE_TXT(Language, "time_format", time_format);
-HANDLE_PREFERENCE_BOOL(Language, "/time_format_override", time_format_override);
+HANDLE_PREFERENCE_BOOL(Language, "time_format_override", time_format_override);
-HANDLE_PREFERENCE_BOOL_EXT(Language, "/UseSystemLanguage", use_system_language, locale.);
+HANDLE_PREFERENCE_BOOL_EXT(Language, "UseSystemLanguage", use_system_language, locale.);