mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Simplify: remove suit and trip
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8929d6eb1a
commit
75561ff956
2 changed files with 2 additions and 6 deletions
subsurface-core/subsurface-qt
|
@ -34,8 +34,6 @@ static QString getFormattedCylinder(struct dive *dive, unsigned int idx)
|
|||
}
|
||||
|
||||
DiveObjectHelper::DiveObjectHelper(struct dive *d) :
|
||||
m_suit(d->suit ? d->suit : EMPTY_DIVE_STRING),
|
||||
m_trip(d->divetrip ? d->divetrip->location : EMPTY_DIVE_STRING),
|
||||
m_maxcns(d->maxcns),
|
||||
m_otu(d->otu),
|
||||
m_dive(d)
|
||||
|
@ -215,7 +213,7 @@ QString DiveObjectHelper::weight(int idx) const
|
|||
|
||||
QString DiveObjectHelper::suit() const
|
||||
{
|
||||
return m_suit;
|
||||
return m_dive->suit ? m_dive->suit : EMPTY_DIVE_STRING;
|
||||
}
|
||||
|
||||
QStringList DiveObjectHelper::cylinders() const
|
||||
|
@ -232,7 +230,7 @@ QString DiveObjectHelper::cylinder(int idx) const
|
|||
|
||||
QString DiveObjectHelper::trip() const
|
||||
{
|
||||
return m_trip;
|
||||
return m_dive->divetrip ? m_dive->divetrip->location : EMPTY_DIVE_STRING;
|
||||
}
|
||||
|
||||
QString DiveObjectHelper::maxcns() const
|
||||
|
|
|
@ -70,9 +70,7 @@ private:
|
|||
QString m_gas;
|
||||
QString m_sac;
|
||||
QStringList m_weights;
|
||||
QString m_suit;
|
||||
QStringList m_cylinders;
|
||||
QString m_trip;
|
||||
QString m_maxcns;
|
||||
QString m_otu;
|
||||
struct dive *m_dive;
|
||||
|
|
Loading…
Add table
Reference in a new issue