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>
This commit is contained in:
Tomaz Canabrava 2013-05-21 09:33:55 -03:00
parent 246fbd0333
commit 126bc8cfa3
4 changed files with 44 additions and 28 deletions

View file

@ -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