From 253d868328a8c43aacff3ad9e40c923881cae862 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 14 Aug 2018 11:01:29 +0200 Subject: core: qPrefPrivate allow setters to be static static setters are easier to reference qPrefFoo::set_xyz() instead for qPrefFoo::instance()->set_xyz() Signed-off-by: Jan Iversen --- core/settings/qPrefPrivate.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/settings') diff --git a/core/settings/qPrefPrivate.h b/core/settings/qPrefPrivate.h index 9d0849402..07a22f1a5 100644 --- a/core/settings/qPrefPrivate.h +++ b/core/settings/qPrefPrivate.h @@ -127,7 +127,7 @@ private: if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_BOOL(usegroup, field) \ @@ -139,7 +139,7 @@ private: if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_DOUBLE(usegroup, field) \ @@ -151,7 +151,7 @@ private: if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_ENUM(usegroup, type, field) \ @@ -163,7 +163,7 @@ private: if (value != prefs.usestruct field) { \ prefs.usestruct field = value; \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_INT(usegroup, field) \ @@ -175,7 +175,7 @@ private: if (value. var != prefs.usestruct field . var) { \ prefs.usestruct field . var = value . var; \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_STRUCT(usegroup, type, field, var) \ @@ -187,7 +187,7 @@ private: if (value != prefs.usestruct field) { \ qPrefPrivate::instance()->copy_txt(&prefs.usestruct field, value); \ disk_##field(true); \ - emit field##_changed(value); \ + emit qPref##usegroup::instance()->field##_changed(value); \ } \ } #define SET_PREFERENCE_TXT(usegroup, field) \ -- cgit v1.2.3-70-g09d2