From c72add5721244cebbf38ea4c7daf1a8ae3198e3e Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 2 Sep 2018 13:58:04 +0200 Subject: core/setting: change *_changed to *Changed for the sake of QML. QML demands signals to be of the form 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 --- core/settings/qPrefPrivate.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'core/settings/qPrefPrivate.h') 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() \ -- cgit v1.2.3-70-g09d2