mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 19:23:25 +00:00
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>
This commit is contained in:
parent
dd944ab33f
commit
3365a506ef
1 changed files with 2 additions and 0 deletions
|
@ -82,6 +82,8 @@ else if (property == "tags")
|
||||||
return object.tags();
|
return object.tags();
|
||||||
else if (property == "gas")
|
else if (property == "gas")
|
||||||
return object.gas();
|
return object.gas();
|
||||||
|
else if (property == "suit")
|
||||||
|
return object.suit();
|
||||||
GRANTLEE_END_LOOKUP
|
GRANTLEE_END_LOOKUP
|
||||||
|
|
||||||
GRANTLEE_BEGIN_LOOKUP(template_options)
|
GRANTLEE_BEGIN_LOOKUP(template_options)
|
||||||
|
|
Loading…
Add table
Reference in a new issue