aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Grace Karanja <gracie.karanja89@gmail.com>2015-06-10 21:38:14 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-20 14:28:08 -0700
commit305509ad5f0577de0a9b75311e78a01b19329515 (patch)
treea076ac57ed94f7b6e4e42e83c5ec4ffbd1c67c75 /qt-models/divelistmodel.h
parent4c40908954ec1490f59b509744e20ae75f21c628 (diff)
downloadsubsurface-305509ad5f0577de0a9b75311e78a01b19329515.tar.gz
Add dive notes to the divelistmodel
Add the dive notes field into the DiveListModel class. 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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 96f16912a..307008cc1 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -47,6 +47,9 @@ public:
QString diveNumber() const;
void setDiveNumber(const QString &diveNumber);
+ QString notes() const;
+ void setNotes(const QString &notes);
+
private:
QString m_diveNumber;
QString m_date;
@@ -60,6 +63,7 @@ private:
QString m_gas;
QString m_sac;
QString m_location;
+ QString m_notes;
dive *m_thisDive;
@@ -82,7 +86,8 @@ public:
DiveCylinderRole,
DiveGasRole,
DiveSacRole,
- DiveLocationRole
+ DiveLocationRole,
+ DiveNotesRole
};
static DiveListModel *instance();