summaryrefslogtreecommitdiffstats
path: root/subsurface-core/qthelper.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-17 00:29:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-16 15:06:32 -0800
commit7e749e8ea4a4c73e01bca1b23dd96aaccbc4fa07 (patch)
tree147e02a595f95979317d4710c09a58efdb1dd390 /subsurface-core/qthelper.cpp
parentc78a5604426e0055250b5201f276ec58e89fb178 (diff)
downloadsubsurface-7e749e8ea4a4c73e01bca1b23dd96aaccbc4fa07.tar.gz
qthelper: also support "maxcns" and "otu" in Grantlee HTML
Fixes #962 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/qthelper.cpp')
-rw-r--r--subsurface-core/qthelper.cpp20
1 files changed, 20 insertions, 0 deletions
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;