[PATCH 3/6] templatelayout.h: expose "dive.suit" as a Grantlee HTML variable

Lubomir I. Ivanov neolit123 at gmail.com
Mon Nov 16 14:29:19 PST 2015


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Having {{ dive.suit }} in the HTML will now return the
suit as QString (from struct dive->suit).

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 desktop-widgets/templatelayout.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/desktop-widgets/templatelayout.h b/desktop-widgets/templatelayout.h
index a2868e7..faedac7 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)
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list