From 3365a506ef3acb7842f483e6d506d07b3cccb13e Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 17 Nov 2015 00:29:19 +0200 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- desktop-widgets/templatelayout.h | 2 ++ 1 file changed, 2 insertions(+) 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)