mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
core: qPrefPrivate.h added HANDLE_PREFERENCE_INT_DEF_EXT
Add missing type macro, needed for qPrefProxy Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
58cdc67227
commit
311b2672da
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue