mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Let cns and otu return ints rather than QStrings
This way they display correctly when accessed from grantlee template Fixes #1085 Signed-off-by: Tim Wootton <tim@tee-jay.org.uk> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2cffb77d19
commit
d0e2ff578a
2 changed files with 8 additions and 8 deletions
|
@ -306,14 +306,14 @@ QString DiveObjectHelper::tripMeta() const
|
|||
return ret;
|
||||
}
|
||||
|
||||
QString DiveObjectHelper::maxcns() const
|
||||
int DiveObjectHelper::maxcns() const
|
||||
{
|
||||
return QString(m_dive->maxcns);
|
||||
return m_dive->maxcns;
|
||||
}
|
||||
|
||||
QString DiveObjectHelper::otu() const
|
||||
int DiveObjectHelper::otu() const
|
||||
{
|
||||
return QString(m_dive->otu);
|
||||
return m_dive->otu;
|
||||
}
|
||||
|
||||
int DiveObjectHelper::rating() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue