summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 09:59:41 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-21 09:59:41 -0300
commitbe31a53b0d7090083f8b3a2ed923d0ed8b61000f (patch)
treeb76ba75915b6061abaffd631a9f39f01b7c28b7d /qt-ui/models.h
parent126bc8cfa3fa60707f87f0920043c44db0d2c513 (diff)
downloadsubsurface-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.h6
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.