diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-07-02 22:38:08 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-03 09:37:55 -0700 |
commit | 6b1b2bc919e311cc7e83f336017f35216c8da538 (patch) | |
tree | e7be0074447f2fc0f17d692c61918d99392df909 /qt-ui/models.h | |
parent | a86aca037843167b26726926dbf2aebe0513afba (diff) | |
download | subsurface-6b1b2bc919e311cc7e83f336017f35216c8da538.tar.gz |
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>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 17be8cbc9..bb73c4f61 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -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; }; |