mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
d85b321784
commit
e38b78b2aa
10 changed files with 40 additions and 12 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue