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:
Dirk Hohndel 2017-05-06 13:44:22 -07:00
parent 38b9185974
commit 876b479d69
5 changed files with 47 additions and 8 deletions

View file

@ -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()) \