diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:59:41 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:59:41 -0300 |
commit | be31a53b0d7090083f8b3a2ed923d0ed8b61000f (patch) | |
tree | b76ba75915b6061abaffd631a9f39f01b7c28b7d /qt-ui/models.h | |
parent | 126bc8cfa3fa60707f87f0920043c44db0d2c513 (diff) | |
download | subsurface-be31a53b0d7090083f8b3a2ed923d0ed8b61000f.tar.gz |
Added support for visualization the Weigthssystems on the Equipment Tab.
This patch adds support showing and for editing weigthsystems in the equipment tab,
so, now the two things that are missing are 'edit' and 'delete', wich are quite easy to do.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 41bd4f892..62ae3913c 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -70,9 +70,11 @@ public: void add(weightsystem_t *weight); void clear(); void update(); + void setDive(struct dive *d); + private: - /* Remember the number of rows in a dive */ - QMap<struct dive *, int> usedRows; + struct dive *current; + int rows; }; /*! An AbstractItemModel for recording dive trip information such as a list of dives. |