From 126bc8cfa3fa60707f87f0920043c44db0d2c513 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 21 May 2013 09:33:55 -0300 Subject: Added the code to show the cylinders from a dive. i Added the code to show the cylinders from a dive, this code also already permits additions from the interface, so the user can click 'add' and insert what he wants there. Signed-off-by: Tomaz Canabrava --- qt-ui/models.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qt-ui/models.h') diff --git a/qt-ui/models.h b/qt-ui/models.h index ac533fd71..41bd4f892 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -49,11 +49,11 @@ public: void add(cylinder_t *cyl); void clear(); void update(); + void setDive(struct dive *d); + private: - /* Since the dive doesn't stores the number of cylinders that - * it has (max 8) and since I don't want to make a - * model-for-each-dive, let's hack this here instead. */ - QMap usedRows; + struct dive *current; + int rows; }; /* Encapsulation of the Weight Model, that represents -- cgit v1.2.3-70-g09d2