summaryrefslogtreecommitdiffstats
path: root/stats/boxseries.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/boxseries.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/boxseries.h')
-rw-r--r--stats/boxseries.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/boxseries.h b/stats/boxseries.h
index ccf8b9883..d4ec09ac8 100644
--- a/stats/boxseries.h
+++ b/stats/boxseries.h
@@ -23,7 +23,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;
// Note: this expects that all items are added with increasing pos
// and that no bar is inside another bar, i.e. lowerBound and upperBound