summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-02-24 22:26:08 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit7924c7dafb3950116bb553eff35d7801cd5e1c54 (patch)
treebf11d1959579f471a39228eeae88a759e985811c /desktop-widgets/divelistview.h
parent91c33b475ce85eaf1a987a29938a198415c04799 (diff)
downloadsubsurface-7924c7dafb3950116bb553eff35d7801cd5e1c54.tar.gz
Undo: switch to edited trip
If fields in a trip are edited, select that trip, which will display the trip in the notes-box. This is realized by hooking into the tripChanged signal in the dive-list. A layering-violation, perhaps? Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r--desktop-widgets/divelistview.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index 830447d92..35e985633 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -16,6 +16,7 @@
#include <QLineEdit>
#include <QNetworkAccessManager>
#include "qt-models/divetripmodel.h"
+#include "core/subsurface-qt/DiveListNotifier.h"
class DiveListView : public QTreeView {
Q_OBJECT
@@ -65,6 +66,7 @@ slots:
void diveSelectionChanged(const QVector<QModelIndex> &indexes, bool select);
void currentDiveChanged(QModelIndex index);
void filterFinished();
+ void tripChanged(dive_trip *trip, TripField);
private:
bool mouseClickSelection;
QList<int> expandedRows;