From d62e60277c6fa5f7b8bc612bd1c6accd3f6d0044 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 19 Apr 2020 19:04:56 +0200 Subject: dive list: update dive list entry if pictures changed We show an icon whether there are pictures and whether they are before or after the dive. Thus, the list models must emit the proper signals when the pictures of a dive change. Signed-off-by: Berthold Stoeger --- qt-models/divetripmodel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models/divetripmodel.h') diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index 332dc59f8..3e7955b5b 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -115,7 +115,7 @@ public slots: void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector &dives); void diveSiteChanged(dive_site *ds, int field); void divesChanged(const QVector &dives); - void cylinderChanged(dive *d); + void diveChanged(dive *d); void divesTimeChanged(timestamp_t delta, const QVector &dives); void divesSelected(const QVector &dives); void tripChanged(dive_trip *trip, TripField); @@ -191,7 +191,7 @@ public slots: void divesDeleted(dive_trip *trip, bool deleteTrip, const QVector &dives); void diveSiteChanged(dive_site *ds, int field); void divesChanged(const QVector &dives); - void cylinderChanged(dive *d); + void diveChanged(dive *d); void divesTimeChanged(timestamp_t delta, const QVector &dives); // Does nothing in list view. //void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector &dives); -- cgit v1.2.3-70-g09d2