diff options
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 8 |
1 files changed, 4 insertions, 4 deletions
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<struct dive *, int> usedRows; + struct dive *current; + int rows; }; /* Encapsulation of the Weight Model, that represents |