From 785d5189f617bab7d5dde668563fc4889e46f695 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 13 Jan 2021 15:17:54 +0100 Subject: statistics: turn infobox into a QSGNode A small step in converting from QGraphicsScene to QQuickItem. This is the second item to be converted (after the legend) and for now items are drawn in order of creation, which means that the infobox is on top of the legend. This will have to be made deterministic in follow-up commits. Signed-off-by: Berthold Stoeger --- stats/scatterseries.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stats/scatterseries.cpp') diff --git a/stats/scatterseries.cpp b/stats/scatterseries.cpp index 2c5cc7716..a073f6992 100644 --- a/stats/scatterseries.cpp +++ b/stats/scatterseries.cpp @@ -5,6 +5,7 @@ #include "statshelper.h" #include "statstranslations.h" #include "statsvariables.h" +#include "statsview.h" #include "zvalues.h" #include "core/dive.h" #include "core/divelist.h" @@ -173,7 +174,7 @@ bool ScatterSeries::hover(QPointF pos) return false; } else { if (!information) - information = createItemPtr(scene); + information = view.createChartItem(); std::vector text; text.reserve(highlighted.size() * 5); -- cgit v1.2.3-70-g09d2