aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-06-11 09:39:32 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 14:28:39 -0700
commitee9452ae8ace9e5ec6b6c99ebb01ec3748e1bfaa (patch)
treed419139e5c00a1de0db6ec90fe43c03decdedd98 /qt-models/divelistmodel.h
parentf0c777975315e87a1ac7fe9ae31ce2a800420fdd (diff)
downloadsubsurface-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.h5
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 &notes);
+ 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,