diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:33:55 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-21 09:33:55 -0300 |
commit | 126bc8cfa3fa60707f87f0920043c44db0d2c513 (patch) | |
tree | 5b66e35f618a7ea565909cd8d1d966df2ff12128 /qt-ui/models.h | |
parent | 246fbd0333c53f55b7ff7e8165b4435163a8f350 (diff) | |
download | subsurface-126bc8cfa3fa60707f87f0920043c44db0d2c513.tar.gz |
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 <tcanabrava@kde.org>
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 |