summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-24 23:02:22 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commite7063b6b08dff5c35436a5fb16fcf3f81717ca52 (patch)
tree1fcbbd570dc83e88e395712e21457aec7e303dc0 /qt-models/divetripmodel.h
parent7924c7dafb3950116bb553eff35d7801cd5e1c54 (diff)
downloadsubsurface-e7063b6b08dff5c35436a5fb16fcf3f81717ca52.tar.gz
Undo: update dive list if trip changed
In tree-mode, the trip locations are displayed. Update the corresponding entries if the trip changed, by hooking into the tripChanged() signal. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r--qt-models/divetripmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index 67a4f090d..236dbb1d2 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -3,6 +3,7 @@
#define DIVETRIPMODEL_H
#include "core/dive.h"
+#include "core/subsurface-qt/DiveListNotifier.h"
#include <QAbstractItemModel>
// There are two different representations of the dive list:
@@ -112,6 +113,7 @@ public slots:
void divesTimeChanged(dive_trip *trip, timestamp_t delta, const QVector<dive *> &dives);
void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives);
void currentDiveChanged();
+ void tripChanged(dive_trip *trip, TripField);
public:
DiveTripModelTree(QObject *parent = nullptr);