diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-05-05 11:42:01 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 11:44:22 -0700 |
commit | 30133946e0354339078dacb18869ae09747f2caf (patch) | |
tree | 01aae56150571576404a38bb8727e9a44be9516f /qt-models/divetripmodel.h | |
parent | beef8096f7d3f580804a30a55364b057897dfcb3 (diff) | |
download | subsurface-30133946e0354339078dacb18869ae09747f2caf.tar.gz |
models: emit dive changed signal when cylinders edited
To display changed SAC values it is necessary that the models
emit changed signals when cylinders are edited. An alternative
might be that the undo commands emit dive-changed signals themselves.
Fixes #2814.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 52173a48c..332dc59f8 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -115,6 +115,7 @@ public slots: void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives); void diveSiteChanged(dive_site *ds, int field); void divesChanged(const QVector<dive *> &dives); + void cylinderChanged(dive *d); void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives); void divesSelected(const QVector<dive *> &dives); void tripChanged(dive_trip *trip, TripField); @@ -190,6 +191,7 @@ public slots: void divesDeleted(dive_trip *trip, bool deleteTrip, const QVector<dive *> &dives); void diveSiteChanged(dive_site *ds, int field); void divesChanged(const QVector<dive *> &dives); + void cylinderChanged(dive *d); void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives); // Does nothing in list view. //void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives); |