summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2016-10-17 18:23:45 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-10-18 11:13:37 -0700
commit713dd26d6c19de0ddc9b8caa28775486bf13c156 (patch)
treeab056b40dbc8b2ffada6f4c5582060a9a96d1081 /core/subsurface-qt/SettingsObjectWrapper.cpp
parentcca09612d10bef5e0469196e7f5c210975aa8a02 (diff)
downloadsubsurface-713dd26d6c19de0ddc9b8caa28775486bf13c156.tar.gz
Added language testcase
Also, added a missing method / property Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index 101e6650c..0e8c8ee67 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -1908,6 +1908,11 @@ bool LanguageSettingsObjectWrapper::useSystemLanguage() const
return prefs.locale.use_system_language;
}
+QString LanguageSettingsObjectWrapper::langLocale() const
+{
+ return prefs.locale.lang_locale;
+}
+
void LanguageSettingsObjectWrapper::setUseSystemLanguage(bool value)
{
if (value == prefs.locale.use_system_language)
@@ -1927,7 +1932,7 @@ void LanguageSettingsObjectWrapper::setLangLocale(const QString &value)
s.beginGroup(group);
s.setValue("UiLangLocale", value);
prefs.locale.lang_locale = copy_string(qPrintable(value));
- // no need to emit languageChanged since we already do this for setLanguage
+ emit langLocaleChanged(value);
}
void LanguageSettingsObjectWrapper::setLanguage(const QString& value)