mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Wire up duration units preference UI
Now we track the preference, but we don't act on it, yet. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
38b9185974
commit
876b479d69
5 changed files with 47 additions and 8 deletions
|
|
@ -11,6 +11,13 @@
|
|||
else \
|
||||
prefs.units.field = default_prefs.units.field
|
||||
|
||||
#define GET_UNIT3(name, field, f, l, type) \
|
||||
v = s.value(QString(name)); \
|
||||
if (v.isValid() && v.toInt() >= (f) && v.toInt() <= (l)) \
|
||||
prefs.units.field = (type)v.toInt(); \
|
||||
else \
|
||||
prefs.units.field = default_prefs.units.field
|
||||
|
||||
#define GET_BOOL(name, field) \
|
||||
v = s.value(QString(name)); \
|
||||
if (v.isValid()) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue