From be31a53b0d7090083f8b3a2ed923d0ed8b61000f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 21 May 2013 09:59:41 -0300 Subject: 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 --- qt-ui/models.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qt-ui/models.h') 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 usedRows; + struct dive *current; + int rows; }; /*! An AbstractItemModel for recording dive trip information such as a list of dives. -- cgit v1.2.3-70-g09d2