From 7e749e8ea4a4c73e01bca1b23dd96aaccbc4fa07 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 17 Nov 2015 00:29:21 +0200 Subject: qthelper: also support "maxcns" and "otu" in Grantlee HTML Fixes #962 Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- subsurface-core/qthelper.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'subsurface-core/qthelper.cpp') diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index 049ebf6fc..c3ea37c97 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -178,6 +178,16 @@ QString Dive::trip() const return m_trip; } +QString Dive::maxcns() const +{ + return m_maxcns; +} + +QString Dive::otu() const +{ + return m_otu; +} + int Dive::rating() const { return m_rating; @@ -351,6 +361,16 @@ void Dive::put_trip() } } +void Dive::put_maxcns() +{ + m_maxcns = QString::number(dive->maxcns); +} + +void Dive::put_otu() +{ + m_otu = QString::number(dive->otu); +} + QString weight_string(int weight_in_grams) { QString str; -- cgit v1.2.3-70-g09d2