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/barseries.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stats/barseries.cpp') diff --git a/stats/barseries.cpp b/stats/barseries.cpp index 91ab1c941..733549d3d 100644 --- a/stats/barseries.cpp +++ b/stats/barseries.cpp @@ -4,6 +4,7 @@ #include "statscolors.h" #include "statshelper.h" #include "statstranslations.h" +#include "statsview.h" #include "zvalues.h" #include // for lrint() @@ -403,7 +404,7 @@ bool BarSeries::hover(QPointF pos) Item &item = items[highlighted.bar]; item.highlight(index.subitem, true, binCount()); if (!information) - information = createItemPtr(scene); + information = view.createChartItem(); information->setText(makeInfo(item, highlighted.subitem), pos); } else { information.reset(); -- cgit v1.2.3-70-g09d2