diff options
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); |