statistics: highlight selected boxes in box plot

In analogy to bar plots, highlight selected boxes in box plots.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-02-07 18:10:08 +01:00 committed by Dirk Hohndel
parent 91d371374b
commit bd252fc820
5 changed files with 37 additions and 5 deletions

View file

@ -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