mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
246fbd0333
commit
126bc8cfa3
4 changed files with 44 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue