aboutsummaryrefslogtreecommitdiffstats
path: root/qt-models/cylindermodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-26 22:32:04 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commit04ce908e8ed6239b8f143b3892da0dcdaa6e8262 (patch)
treecaddf0b570a6b24cfffeabb5932bcbcaf672ec6b /qt-models/cylindermodel.h
parent75f37a7d10b4c650552a344770c92a2038e9db34 (diff)
downloadsubsurface-04ce908e8ed6239b8f143b3892da0dcdaa6e8262.tar.gz
CylindersModel: listen and react to signals
React to signals from the undo-commands and update the model accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/cylindermodel.h')
-rw-r--r--qt-models/cylindermodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-models/cylindermodel.h b/qt-models/cylindermodel.h
index 40eaf98a1..85a59c9f5 100644
--- a/qt-models/cylindermodel.h
+++ b/qt-models/cylindermodel.h
@@ -54,6 +54,9 @@ public
slots:
void remove(QModelIndex index);
void cylindersReset(const QVector<dive *> &dives);
+ void cylinderAdded(dive *d, int pos);
+ void cylinderRemoved(dive *d, int pos);
+ void cylinderEdited(dive *d, int pos);
private:
dive *d;