From e38b78b2aa787e3d1de97fb737601dc30a7fad6b Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 31 Jan 2021 21:30:51 +0100 Subject: 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 --- stats/pieseries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stats/pieseries.cpp') diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index ff0690bb8..9f55d41d2 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -265,7 +265,7 @@ void PieSeries::unhighlight() highlighted = -1; } -void PieSeries::selectItemsUnderMouse(const QPointF &pos) +void PieSeries::selectItemsUnderMouse(const QPointF &pos, bool) { int index = getItemUnderMouse(pos); if (index < 0) -- cgit v1.2.3-70-g09d2