summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefLanguage.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-02 13:58:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:22:58 -0700
commitc72add5721244cebbf38ea4c7daf1a8ae3198e3e (patch)
tree537b76cceedc2f8ece101912b83e6dfca6a22e76 /core/settings/qPrefLanguage.h
parent740fcce338a00e7ec8d1c4701229d46b5463b974 (diff)
downloadsubsurface-c72add5721244cebbf38ea4c7daf1a8ae3198e3e.tar.gz
core/setting: change *_changed to *Changed for the sake of QML.
QML demands signals to be of the form <name>Changed Changing all of qPref REMARK: this commit is not compileable, since it only change qPref and not the rest of the system Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/settings/qPrefLanguage.h')
-rw-r--r--core/settings/qPrefLanguage.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/core/settings/qPrefLanguage.h b/core/settings/qPrefLanguage.h
index e004f79d3..f3c15823a 100644
--- a/core/settings/qPrefLanguage.h
+++ b/core/settings/qPrefLanguage.h
@@ -7,14 +7,14 @@
class qPrefLanguage : public QObject {
Q_OBJECT
- Q_PROPERTY(QString date_format READ date_format WRITE set_date_format NOTIFY date_format_changed);
- Q_PROPERTY(bool date_format_override READ date_format_override WRITE set_date_format_override NOTIFY date_format_override_changed);
- Q_PROPERTY(QString date_format_short READ date_format_short WRITE set_date_format_short NOTIFY date_format_short_changed);
- Q_PROPERTY(QString language READ language WRITE set_language NOTIFY language_changed);
- Q_PROPERTY(QString lang_locale READ lang_locale WRITE set_lang_locale NOTIFY lang_locale_changed);
- Q_PROPERTY(QString time_format READ time_format WRITE set_time_format NOTIFY time_format_changed);
- Q_PROPERTY(bool time_format_override READ time_format_override WRITE set_time_format_override NOTIFY time_format_override_changed);
- Q_PROPERTY(bool use_system_language READ use_system_language WRITE set_use_system_language NOTIFY use_system_language_changed);
+ Q_PROPERTY(QString date_format READ date_format WRITE set_date_format NOTIFY date_formatChanged);
+ Q_PROPERTY(bool date_format_override READ date_format_override WRITE set_date_format_override NOTIFY date_format_overrideChanged);
+ Q_PROPERTY(QString date_format_short READ date_format_short WRITE set_date_format_short NOTIFY date_format_shortChanged);
+ Q_PROPERTY(QString language READ language WRITE set_language NOTIFY languageChanged);
+ Q_PROPERTY(QString lang_locale READ lang_locale WRITE set_lang_locale NOTIFY lang_localeChanged);
+ Q_PROPERTY(QString time_format READ time_format WRITE set_time_format NOTIFY time_formatChanged);
+ Q_PROPERTY(bool time_format_override READ time_format_override WRITE set_time_format_override NOTIFY time_format_overrideChanged);
+ Q_PROPERTY(bool use_system_language READ use_system_language WRITE set_use_system_language NOTIFY use_system_languageChanged);
public:
qPrefLanguage(QObject *parent = NULL);
@@ -46,14 +46,14 @@ public slots:
static void set_use_system_language(bool value);
signals:
- void date_format_changed(const QString& value);
- void date_format_override_changed(bool value);
- void date_format_short_changed(const QString& value);
- void language_changed(const QString& value);
- void lang_locale_changed(const QString& value);
- void time_format_changed(const QString& value);
- void time_format_override_changed(bool value);
- void use_system_language_changed(bool value);
+ void date_formatChanged(const QString& value);
+ void date_format_overrideChanged(bool value);
+ void date_format_shortChanged(const QString& value);
+ void languageChanged(const QString& value);
+ void lang_localeChanged(const QString& value);
+ void time_formatChanged(const QString& value);
+ void time_format_overrideChanged(bool value);
+ void use_system_languageChanged(bool value);
private:
static void disk_date_format(bool doSync);