diff options
author | jan Iversen <jani@apache.org> | 2018-09-02 13:58:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:22:58 -0700 |
commit | c72add5721244cebbf38ea4c7daf1a8ae3198e3e (patch) | |
tree | 537b76cceedc2f8ece101912b83e6dfca6a22e76 /core/settings/qPrefPrivate.h | |
parent | 740fcce338a00e7ec8d1c4701229d46b5463b974 (diff) | |
download | subsurface-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/qPrefPrivate.h')
-rw-r--r-- | core/settings/qPrefPrivate.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/settings/qPrefPrivate.h b/core/settings/qPrefPrivate.h index d4f60542c..95466cece 100644 --- a/core/settings/qPrefPrivate.h +++ b/core/settings/qPrefPrivate.h @@ -152,7 +152,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_BOOL(usegroup, field) \ @@ -164,7 +164,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_DOUBLE(usegroup, field) \ @@ -176,7 +176,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_ENUM(usegroup, type, field) \ @@ -188,7 +188,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_INT(usegroup, field) \ @@ -200,7 +200,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value. var != prefs.usestruct field . var) { \ prefs.usestruct field . var = value . var; \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_STRUCT(usegroup, type, field, var) \ @@ -212,7 +212,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != prefs.usestruct field) { \ qPrefPrivate::copy_txt(&prefs.usestruct field, value); \ disk_##field(true); \ - emit qPref##usegroup::instance()->field##_changed(value); \ + emit qPref##usegroup::instance()->field##Changed(value); \ } \ } #define SET_PREFERENCE_TXT(usegroup, field) \ @@ -267,7 +267,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, QPointF()); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ @@ -281,7 +281,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, ""); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ @@ -295,7 +295,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, false); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ @@ -309,7 +309,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, 0.0); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ @@ -323,7 +323,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, 0); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ @@ -337,7 +337,7 @@ extern QString keyFromGroupAndName(QString group, QString name); if (value != st_##field) { \ st_##field = value; \ qPrefPrivate::propSetValue(name, st_##field, QByteArray()); \ - emit qPref##useclass::instance()->field##_changed(value); \ + emit qPref##useclass::instance()->field##Changed(value); \ } \ } \ void qPref##useclass::load_##field() \ |