From 6b1b2bc919e311cc7e83f336017f35216c8da538 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 2 Jul 2014 22:38:08 -0700 Subject: 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 --- qt-ui/models.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'qt-ui/models.h') 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; }; -- cgit v1.2.3-70-g09d2