summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-11-26 15:44:18 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-26 11:25:50 -0800
commite175b1d1ab76ee8edcd3beb1c027a58a336af96e (patch)
treef2b296d4bc9b80f0bc79cf6ed761f57d844d17c6 /qthelper.h
parente91a1fc26c6c0ac2efee0a13e7ab29b3caa61f0c (diff)
downloadsubsurface-e175b1d1ab76ee8edcd3beb1c027a58a336af96e.tar.gz
Remember Trip Selection.
This patch remembers the trip selection across the Dive Tree Model. It's a tiny bit big because we used to have a variable 'selected trips' that's now calculed dynamically - this is more future proof. This is a start of Un-cluttering the view ( for 4.1 I hope to reduce the code in this class to nearly a half. ) Fixes #303 Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h
index cd0d8affa..4b0939334 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -5,6 +5,7 @@
#include <QString>
#include <stdint.h>
#include "dive.h"
+#include "divelist.h"
#include <QTranslator>
// global pointers for our translation
@@ -40,4 +41,5 @@ public:
QString weight_string(int weight_in_grams);
bool gpsHasChanged(struct dive* dive, struct dive *master, const QString &gps_text);
+QList<int> getDivesInTrip(dive_trip_t *trip);
#endif // QTHELPER_H