diff options
author | Grace Karanja <gracie.karanja89@gmail.com> | 2015-06-11 09:39:32 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-20 14:28:39 -0700 |
commit | ee9452ae8ace9e5ec6b6c99ebb01ec3748e1bfaa (patch) | |
tree | d419139e5c00a1de0db6ec90fe43c03decdedd98 /qt-models/divelistmodel.h | |
parent | f0c777975315e87a1ac7fe9ae31ce2a800420fdd (diff) | |
download | subsurface-ee9452ae8ace9e5ec6b6c99ebb01ec3748e1bfaa.tar.gz |
Group dives by trips
Group dives according to the allocated dive trips.
Signed-off-by: Grace Karanja <gracie.karanja89@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r-- | qt-models/divelistmodel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index 307008cc1..f58040508 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -50,8 +50,12 @@ public: QString notes() const; void setNotes(const QString ¬es); + QString trip() const; + void setTrip(const QString &trip); + private: QString m_diveNumber; + QString m_trip; QString m_date; QString m_rating; QString m_depth; @@ -76,6 +80,7 @@ public: enum DiveListRoles { DiveNumberRole = Qt::UserRole + 1, + DiveTripRole, DiveDateRole, DiveRatingRole, DiveDepthRole, |