diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-14 12:37:26 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2021-01-20 08:47:18 +0100 |
commit | 9b7565e81a0b62711eaeafb633047a819e149170 (patch) | |
tree | 6f4b2fff445f6bccd17236566d49ca10dc54528e /stats/statsview.cpp | |
parent | c74975632e4ed6a63773b893b164055e4b17920f (diff) | |
download | subsurface-9b7565e81a0b62711eaeafb633047a819e149170.tar.gz |
statistics: turn ChartGrid into QSGNodes
Turn the background grid into QSGNodes. Each grid line is
represented by a QSG line item. An alternative would be
drawing the grid into a QImage and blasting that onto the
screen. It is unclear which one is preferred.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/statsview.cpp')
-rw-r--r-- | stats/statsview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/statsview.cpp b/stats/statsview.cpp index 29ee2d990..83a586456 100644 --- a/stats/statsview.cpp +++ b/stats/statsview.cpp @@ -317,7 +317,7 @@ void StatsView::setAxes(StatsAxis *x, StatsAxis *y) xAxis = x; yAxis = y; if (x && y) - grid = std::make_unique<StatsGrid>(&scene, *x, *y); + grid = std::make_unique<StatsGrid>(*this, *x, *y); } void StatsView::reset() |