From aae27629c4b6f524911f869694da27dcd2533adb Mon Sep 17 00:00:00 2001 From: Grace Karanja Date: Mon, 13 Jul 2015 13:06:45 +0300 Subject: QL UI: Add DiveId role to DiveListModel This will be used when rendering the dive profile and also when saving the dive changes. Signed-off-by: Grace Karanja --- qt-models/divelistmodel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qt-models/divelistmodel.h') diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index 68f0c6fa7..89f793bbc 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -62,6 +62,9 @@ public: QString watertemp() const; void setWatertemp(const QString &watertemp); + QString diveId() const; + void setDiveId(const QString &diveId); + private: void setupDiveTempDetails(); @@ -82,6 +85,7 @@ private: QString m_notes; QString m_buddy; QString m_divemaster; + QString m_diveId; dive *m_thisDive; @@ -109,7 +113,8 @@ public: DiveLocationRole, DiveNotesRole, DiveBuddyRole, - DiveMasterRole + DiveMasterRole, + DiveIdRole }; static DiveListModel *instance(); -- cgit v1.2.3-70-g09d2