diff options
author | jan Iversen <jani@apache.org> | 2018-07-27 20:35:48 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-30 07:43:22 -0700 |
commit | 311b2672da5bda0efbdda70bfe33ccc088ba5c8d (patch) | |
tree | 758abdea6540b239de80cf9dcd738a40b1d66a51 /core | |
parent | 58cdc67227b8b7d2b6509087b17c426a5dd5a0ca (diff) | |
download | subsurface-311b2672da5bda0efbdda70bfe33ccc088ba5c8d.tar.gz |
core: qPrefPrivate.h added HANDLE_PREFERENCE_INT_DEF_EXT
Add missing type macro, needed for qPrefProxy
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/settings/qPrefPrivate.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/settings/qPrefPrivate.h b/core/settings/qPrefPrivate.h index 032c910e1..e68c5cbd8 100644 --- a/core/settings/qPrefPrivate.h +++ b/core/settings/qPrefPrivate.h @@ -75,7 +75,7 @@ private: prefs.usestruct field = qPrefPrivate::instance()->setting.value(group + name, default_prefs.usestruct field).toInt(); \ } #define DISK_LOADSYNC_INT(usegroup, name, field) \ - DISK_LOADSYNC_INT(usegroup, name, field, ) + DISK_LOADSYNC_INT_EXT(usegroup, name, field, ) #define DISK_LOADSYNC_INT_DEF_EXT(usegroup, name, field, defval, usestruct) \ void qPref##usegroup::disk_##field(bool doSync) \ @@ -185,6 +185,12 @@ private: #define HANDLE_PREFERENCE_INT(usegroup, name, field) \ HANDLE_PREFERENCE_INT_EXT(usegroup, name, field, ) +#define HANDLE_PREFERENCE_INT_DEF_EXT(usegroup, name, field, defval, usestruct) \ + SET_PREFERENCE_INT_EXT(usegroup, field, usestruct); \ + DISK_LOADSYNC_INT_DEF_EXT(usegroup, name, field, defval, usestruct); +#define HANDLE_PREFERENCE_INT_DEF(usegroup, name, field, defval) \ + HANDLE_PREFERENCE_INT_DEF_EXT(usegroup, name, field, defval, ) + #define HANDLE_PREFERENCE_TXT_EXT(usegroup, name, field, usestruct) \ SET_PREFERENCE_TXT_EXT(usegroup, field, usestruct); \ DISK_LOADSYNC_TXT_EXT(usegroup, name, field, usestruct); |