summaryrefslogtreecommitdiffstats
path: root/stats/barseries.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-31 21:30:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commite38b78b2aa787e3d1de97fb737601dc30a7fad6b (patch)
treeedac9dafd1bdb94acc184ae767ec9afb80cd808e /stats/barseries.h
parentd85b3217840656bf371cd64264ee472a68c3141a (diff)
downloadsubsurface-e38b78b2aa787e3d1de97fb737601dc30a7fad6b.tar.gz
statistics: select multiple dives in scatter-plot by shift-clicking
Somewhat improve selection mechanics in the scatter-plot by allowing additional selections with shift-clicking. When the dives under the mouse are already selected, then deselect them. This appears to be a rather common UI idiom in desktop applications. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/barseries.h')
-rw-r--r--stats/barseries.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/barseries.h b/stats/barseries.h
index 9e0eec355..190efe19d 100644
--- a/stats/barseries.h
+++ b/stats/barseries.h
@@ -69,7 +69,7 @@ public:
void updatePositions() override;
bool hover(QPointF pos) override;
void unhighlight() override;
- void selectItemsUnderMouse(const QPointF &point) override;
+ void selectItemsUnderMouse(const QPointF &point, bool shiftPressed) override;
private:
BarSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis,