mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a86aca0378
commit
6b1b2bc919
4 changed files with 59 additions and 49 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue