mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
c78a560442
commit
7e749e8ea4
3 changed files with 30 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue