diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-05 12:11:46 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-06 12:31:22 -0800 |
commit | 4ab9f1c6b06204285267e79b5ed993514e0213e2 (patch) | |
tree | 5e8e792ec76639b1493937d6401bb92d05dabb1c /stats/scatterseries.h | |
parent | 598058e21ebc93834b71cc1b66e881451a596ce6 (diff) | |
download | subsurface-4ab9f1c6b06204285267e79b5ed993514e0213e2.tar.gz |
statistics: replace QtCharts' axes
Replace by custom implementation, with the ultimate goal to
remove the QtCharts module. This doesn't yet display axis
titles or a grid.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'stats/scatterseries.h')
-rw-r--r-- | stats/scatterseries.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stats/scatterseries.h b/stats/scatterseries.h index 335fb828c..212a8e4ea 100644 --- a/stats/scatterseries.h +++ b/stats/scatterseries.h @@ -30,16 +30,14 @@ public: private: // Get items under mouse. - // Super weird: this function can't be const, because QChart::mapToValue takes - // a non-const reference!? - std::vector<int> getItemsUnderMouse(const QPointF &f); + std::vector<int> getItemsUnderMouse(const QPointF &f) const; struct Item { std::unique_ptr<QGraphicsPixmapItem> item; dive *d; double pos, value; Item(QtCharts::QChart *chart, ScatterSeries *series, dive *d, double pos, double value); - void updatePosition(QtCharts::QChart *chart, ScatterSeries *series); + void updatePosition(ScatterSeries *series); void highlight(bool highlight); }; |