statistics: implement shift-selection of ranges

For all the series but the scatter series (which supports
lasso selection), implement a range-selection using shift.

The code is fairly similar for all series and one might
think about factoring it out. But why bother?

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-02-10 20:59:34 +01:00 committed by Dirk Hohndel
parent 43b0ccca3e
commit 2943b1cbde
6 changed files with 80 additions and 6 deletions

View file

@ -65,7 +65,8 @@ private:
ChartItemPtr<InformationBox> information;
QPointF center; // center of drawing area
double radius; // radius of pie
int highlighted;
int highlighted; // -1: no item highlighted
int lastClicked; // -1: no item clicked
void divesSelected(const QVector<dive *> &) override;
};