summaryrefslogtreecommitdiffstats
path: root/qt-models/weightmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-23 22:09:34 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit9fd87fa08081116ba12812ddea0a43be61019cbb (patch)
treeeaaa75a9455bdb82a1174208d2ed352e44e91f32 /qt-models/weightmodel.h
parent9ed5cf16a4a0f982f0fae170740ee2886f634a14 (diff)
downloadsubsurface-9fd87fa08081116ba12812ddea0a43be61019cbb.tar.gz
Undo: update cylinder and weight models on paste
When pasting (or undoing paste) the cylinders or weights may change. Send the appropriate signals and update the models accordingly. Currently, this means copying from current dive to displayed dive, but hopefully we can get rid of "displayed_dive" in the not so distant future. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/weightmodel.h')
-rw-r--r--qt-models/weightmodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/weightmodel.h b/qt-models/weightmodel.h
index 574a40c29..ec43bbbb8 100644
--- a/qt-models/weightmodel.h
+++ b/qt-models/weightmodel.h
@@ -32,6 +32,7 @@ public:
public
slots:
void remove(const QModelIndex &index);
+ void weightsystemsReset(dive_trip *trip, const QVector<dive *> &dives);
private:
int rows;