aboutsummaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index a4e8bd50b..00412b224 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -145,5 +145,17 @@ bool gpsHasChanged(struct dive *dive, struct dive *master, const QString& gps_te
dive->latitude.udeg = latudeg;
dive->longitude.udeg = longudeg;
return true;
+}
+QList< int > getDivesInTrip ( dive_trip_t* trip )
+{
+ QList<int> ret;
+ for(int i = 0; i < dive_table.nr; i++){
+ struct dive *d = get_dive(i);
+ if (d->divetrip == trip){
+ ret.push_back(get_divenr(d));
+ }
+ }
+ return ret;
}
+