diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-05 13:51:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-06 12:31:22 -0800 |
commit | ab324ed769b4d39816020bf649defb61cb4bff41 (patch) | |
tree | 066dfab03a5d3a370b7928d53eb0c18d96cda62e /stats/statsaxis.h | |
parent | 8dfa3f6db3eda8bce432afb7407efe2d8822ebbd (diff) | |
download | subsurface-ab324ed769b4d39816020bf649defb61cb4bff41.tar.gz |
statistics: paint custom grid
With removal of QtCharts' axes, the grid was lost. Readd it.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsaxis.h')
-rw-r--r-- | stats/statsaxis.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stats/statsaxis.h b/stats/statsaxis.h index c25ffe692..150deb087 100644 --- a/stats/statsaxis.h +++ b/stats/statsaxis.h @@ -30,6 +30,8 @@ public: // Map x (horizontal) or y (vertical) coordinate to or from screen coordinate double toScreen(double) const; double toValue(double) const; + + std::vector<double> ticksPositions() const; // Positions in screen coordinates protected: StatsAxis(QtCharts::QChart *chart, const QString &title, bool horizontal, bool labelsBetweenTicks); QtCharts::QChart *chart; |