From 311b2672da5bda0efbdda70bfe33ccc088ba5c8d Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Jul 2018 20:35:48 +0200 Subject: [PATCH] core: qPrefPrivate.h added HANDLE_PREFERENCE_INT_DEF_EXT Add missing type macro, needed for qPrefProxy Signed-off-by: Jan Iversen --- core/settings/qPrefPrivate.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);