summaryrefslogtreecommitdiffstats
path: root/stats/boxseries.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-02-10 20:59:34 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commit2943b1cbde1a60ef00f1878a27f811246d9b2bc3 (patch)
treed205caca81c2b4fe4fabed06c9f6d747617a4a30 /stats/boxseries.h
parent43b0ccca3e8db081378d0924de257b4185b90464 (diff)
downloadsubsurface-2943b1cbde1a60ef00f1878a27f811246d9b2bc3.tar.gz
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>
Diffstat (limited to 'stats/boxseries.h')
-rw-r--r--stats/boxseries.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stats/boxseries.h b/stats/boxseries.h
index 75e6cfa49..f7bf21183 100644
--- a/stats/boxseries.h
+++ b/stats/boxseries.h
@@ -53,6 +53,7 @@ private:
ChartItemPtr<InformationBox> information;
std::vector<std::unique_ptr<Item>> items;
int highlighted; // -1: no item highlighted
+ int lastClicked; // -1: no item clicked
void divesSelected(const QVector<dive *> &) override;
};