aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.h
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.h
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.h')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.h b/core/subsurface-qt/SettingsObjectWrapper.h
index 64e6a5a8a..d9b8196d4 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.h
+++ b/core/subsurface-qt/SettingsObjectWrapper.h
@@ -597,6 +597,7 @@ class LanguageSettingsObjectWrapper : public QObject {
Q_PROPERTY(QString time_format READ timeFormat WRITE setTimeFormat NOTIFY timeFormatChanged)
Q_PROPERTY(QString date_format READ dateFormat WRITE setDateFormat NOTIFY dateFormatChanged)
Q_PROPERTY(QString date_format_short READ dateFormatShort WRITE setDateFormatShort NOTIFY dateFormatShortChanged)
+ Q_PROPERTY(QString lang_locale READ langLocale WRITE setLangLocale NOTIFY langLocaleChanged)
Q_PROPERTY(bool time_format_override READ timeFormatOverride WRITE setTimeFormatOverride NOTIFY timeFormatOverrideChanged)
Q_PROPERTY(bool date_format_override READ dateFormatOverride WRITE setDateFormatOverride NOTIFY dateFormatOverrideChanged)
Q_PROPERTY(bool use_system_language READ useSystemLanguage WRITE setUseSystemLanguage NOTIFY useSystemLanguageChanged)
@@ -604,6 +605,7 @@ class LanguageSettingsObjectWrapper : public QObject {
public:
LanguageSettingsObjectWrapper(QObject *parent);
QString language() const;
+ QString langLocale() const;
QString timeFormat() const;
QString dateFormat() const;
QString dateFormatShort() const;
@@ -622,6 +624,7 @@ public slots:
void setUseSystemLanguage (bool value);
signals:
void languageChanged(const QString& value);
+ void langLocaleChanged(const QString& value);
void timeFormatChanged(const QString& value);
void dateFormatChanged(const QString& value);
void dateFormatShortChanged(const QString& value);