aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statsview.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-14 12:37:26 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2021-01-20 08:47:18 +0100
commit9b7565e81a0b62711eaeafb633047a819e149170 (patch)
tree6f4b2fff445f6bccd17236566d49ca10dc54528e /stats/statsview.cpp
parentc74975632e4ed6a63773b893b164055e4b17920f (diff)
downloadsubsurface-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.cpp2
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()