aboutsummaryrefslogtreecommitdiffstats
path: root/stats/scatterseries.h
diff options
context:
space:
mode:
Diffstat (limited to 'stats/scatterseries.h')
-rw-r--r--stats/scatterseries.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/stats/scatterseries.h b/stats/scatterseries.h
index 35526dfc0..1b8db0337 100644
--- a/stats/scatterseries.h
+++ b/stats/scatterseries.h
@@ -27,11 +27,14 @@ 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, bool shiftPressed) override;
+ bool selectItemsUnderMouse(const QPointF &point, bool shiftPressed) override;
+ bool supportsLassoSelection() const override;
+ void selectItemsInRect(const QRectF &rect, bool shiftPressed, const std::vector<dive *> &oldSelection) override;
private:
// Get items under mouse.
std::vector<int> getItemsUnderMouse(const QPointF &f) const;
+ std::vector<int> getItemsInRect(const QRectF &f) const;
struct Item {
ChartItemPtr<ChartScatterItem> item;