diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-02-10 20:59:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-13 13:02:54 -0800 |
commit | 2943b1cbde1a60ef00f1878a27f811246d9b2bc3 (patch) | |
tree | d205caca81c2b4fe4fabed06c9f6d747617a4a30 /stats/barseries.h | |
parent | 43b0ccca3e8db081378d0924de257b4185b90464 (diff) | |
download | subsurface-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/barseries.h')
-rw-r--r-- | stats/barseries.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stats/barseries.h b/stats/barseries.h index 6779e5b6c..c14ce9ee2 100644 --- a/stats/barseries.h +++ b/stats/barseries.h @@ -82,7 +82,9 @@ private: Index(); Index(int bar, int subitem); bool operator==(const Index &i2) const; + bool operator<=(const Index &i2) const; }; + void inc(Index &index); // Get item under mouse pointer, or -1 if none Index getItemUnderMouse(const QPointF &f) const; @@ -135,6 +137,7 @@ private: const StatsVariable *valueVariable; // null: this is count based std::vector<QString> valueBinNames; Index highlighted; + Index lastClicked; struct SubItemDesc { double v; std::vector<dive *> dives; |