UI restructure: get rid of "current" pointer in cylinders and weights

Instead always display the display_dive.

Now the only thing left to slay is the stagingDive...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-07-02 22:38:08 -07:00
parent a86aca0378
commit 6b1b2bc919
4 changed files with 59 additions and 49 deletions

View file

@ -116,8 +116,7 @@ public:
void passInData(const QModelIndex &index, const QVariant &value);
void add();
void clear();
void update();
void setDive(struct dive *d);
void updateDive();
void copyFromDive(struct dive *d);
cylinder_t *cylinderAt(const QModelIndex &index);
bool changed;
@ -127,7 +126,6 @@ slots:
void remove(const QModelIndex &index);
private:
struct dive *current;
int rows;
};
@ -151,8 +149,7 @@ public:
void passInData(const QModelIndex &index, const QVariant &value);
void add();
void clear();
void update();
void setDive(struct dive *d);
void updateDive();
weightsystem_t *weightSystemAt(const QModelIndex &index);
bool changed;
@ -161,7 +158,6 @@ slots:
void remove(const QModelIndex &index);
private:
struct dive *current;
int rows;
};