mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the existing current_dive macro in Qt code
Replicating this with the currentDive member seems to make no sense. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0794f03b5e
commit
730e055e5a
2 changed files with 23 additions and 23 deletions
|
|
@ -47,12 +47,10 @@ public:
|
|||
void clear();
|
||||
void update();
|
||||
private:
|
||||
dive *currentDive;
|
||||
|
||||
/* 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<dive*, int> usedRows;
|
||||
QMap<struct dive *, int> usedRows;
|
||||
};
|
||||
|
||||
/* Encapsulation of the Weight Model, that represents
|
||||
|
|
@ -68,7 +66,8 @@ class WeightModel : public QAbstractTableModel {
|
|||
void clear();
|
||||
void update();
|
||||
private:
|
||||
int rows;
|
||||
/* Remember the number of rows in a dive */
|
||||
QMap<struct dive *, int> usedRows;
|
||||
};
|
||||
|
||||
/*! An AbstractItemModel for recording dive trip information such as a list of dives.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue