mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <gracie.karanja89@gmail.com>
This commit is contained in:
parent
5d12723656
commit
aae27629c4
2 changed files with 20 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue