aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-17 00:29:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-16 15:03:59 -0800
commit3365a506ef3acb7842f483e6d506d07b3cccb13e (patch)
treedafecb9b5be18578a40b64976ad2dea0cff07c59
parentdd944ab33f8f2984c9cc7f1d94a5aa632e3ad1f4 (diff)
downloadsubsurface-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.h2
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)