aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statshelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'stats/statshelper.h')
-rw-r--r--stats/statshelper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/stats/statshelper.h b/stats/statshelper.h
index 45d58d022..bc3eb57a3 100644
--- a/stats/statshelper.h
+++ b/stats/statshelper.h
@@ -5,12 +5,18 @@
#define STATSHELPER_H
#include <memory>
+#include <vector>
#include <QPointF>
#include <QSGNode>
+struct dive;
+
// Round positions to integer values to avoid ugly artifacts
QPointF roundPos(const QPointF &p);
+// Are all dives in this vector selected?
+bool allDivesSelected(const std::vector<dive *> &dives);
+
// A stupid pointer class that initializes to null and can be copy
// assigned. This is for historical reasons: unique_ptrs to ChartItems
// were replaced by plain pointers. Instead of nulling the plain pointers