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>
This commit is contained in:
Berthold Stoeger 2020-02-26 22:32:04 +01:00
parent 75f37a7d10
commit 04ce908e8e
2 changed files with 34 additions and 0 deletions

View file

@ -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;