aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-07-18 11:53:47 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-07-18 12:01:48 -0700
commit3aa55462dc2fc44151962a292f9b7034ec3863b2 (patch)
treea23bb4c4ac539673f59dc2bd0bc11a3b9d1fcc0b /qt-ui/models.h
parent7e029980b80b176282743fe3b43a3cc49bac9154 (diff)
downloadsubsurface-3aa55462dc2fc44151962a292f9b7034ec3863b2.tar.gz
Added the code to revert Weigths when user cancels edition
This is a follow up commit to the previous one that enabled cancel for cylinders, everything in the commit log for the cylinders also applyes here. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index b7a72b1d2..e8a7daaf3 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -114,6 +114,8 @@ public:
void clear();
void update();
void setDive(struct dive *d);
+ weightsystem_t *weightSystemAt(const QModelIndex& index);
+
public slots:
void remove(const QModelIndex& index);