summaryrefslogtreecommitdiffstats
path: root/stats/pieseries.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/pieseries.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/pieseries.h')
-rw-r--r--stats/pieseries.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/pieseries.h b/stats/pieseries.h
index 2706fbb41..d41469029 100644
--- a/stats/pieseries.h
+++ b/stats/pieseries.h
@@ -28,7 +28,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;
std::vector<QString> binNames();