diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-11-17 00:29:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-16 15:03:59 -0800 |
commit | 3365a506ef3acb7842f483e6d506d07b3cccb13e (patch) | |
tree | dafecb9b5be18578a40b64976ad2dea0cff07c59 | |
parent | dd944ab33f8f2984c9cc7f1d94a5aa632e3ad1f4 (diff) | |
download | subsurface-3365a506ef3acb7842f483e6d506d07b3cccb13e.tar.gz |
templatelayout.h: expose "dive.suit" as a Grantlee HTML variable
Having {{ dive.suit }} in the HTML will now return the
suit as QString (from struct dive->suit).
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | desktop-widgets/templatelayout.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/templatelayout.h b/desktop-widgets/templatelayout.h index a2868e7ff..faedac778 100644 --- a/desktop-widgets/templatelayout.h +++ b/desktop-widgets/templatelayout.h @@ -82,6 +82,8 @@ else if (property == "tags") return object.tags(); else if (property == "gas") return object.gas(); +else if (property == "suit") + return object.suit(); GRANTLEE_END_LOOKUP GRANTLEE_BEGIN_LOOKUP(template_options) |