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>
This commit is contained in:
Lubomir I. Ivanov 2015-11-17 00:29:21 +02:00 committed by Dirk Hohndel
parent c78a560442
commit 7e749e8ea4
3 changed files with 30 additions and 0 deletions

View file

@ -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;