diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-31 21:30:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-02-13 13:02:54 -0800 |
commit | e38b78b2aa787e3d1de97fb737601dc30a7fad6b (patch) | |
tree | edac9dafd1bdb94acc184ae767ec9afb80cd808e /stats/statsseries.h | |
parent | d85b3217840656bf371cd64264ee472a68c3141a (diff) | |
download | subsurface-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/statsseries.h')
-rw-r--r-- | stats/statsseries.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/statsseries.h b/stats/statsseries.h index 8a4003550..cee2ec0a8 100644 --- a/stats/statsseries.h +++ b/stats/statsseries.h @@ -17,7 +17,7 @@ public: virtual void updatePositions() = 0; // Called if chart geometry changes. virtual bool hover(QPointF pos) = 0; // Called on mouse movement. Return true if an item of this series is highlighted. virtual void unhighlight() = 0; // Unhighlight any highlighted item. - virtual void selectItemsUnderMouse(const QPointF &pos) = 0; + virtual void selectItemsUnderMouse(const QPointF &pos, bool shiftPressed) = 0; virtual void divesSelected(const QVector<dive *> &dives); protected: |