mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cca09612d1
commit
713dd26d6c
3 changed files with 44 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue