subsurface/stats/statshelper.h
Berthold Stoeger 2eebae13dd stats: break out common QtQuick part of the code
Move most of the QtQuick code to its own directory, so that it
can be reused in the future for the chart.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-09-11 10:35:04 +02:00

17 lines
379 B
C++

// SPDX-License-Identifier: GPL-2.0
// Helper functions to render the stats.
#ifndef STATSHELPER_H
#define STATSHELPER_H
#include <vector>
#include <QPointF>
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);
#endif