summaryrefslogtreecommitdiffstats
path: root/stats/scatterseries.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/scatterseries.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/scatterseries.h')
-rw-r--r--stats/scatterseries.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/scatterseries.h b/stats/scatterseries.h
index 6f24c58e5..35526dfc0 100644
--- a/stats/scatterseries.h
+++ b/stats/scatterseries.h
@@ -27,7 +27,7 @@ public:
// Note: this expects that all items are added with increasing pos!
void append(dive *d, double pos, double value);
- void selectItemsUnderMouse(const QPointF &point) override;
+ void selectItemsUnderMouse(const QPointF &point, bool shiftPressed) override;
private:
// Get items under mouse.