diff options
author | 2021-01-13 15:17:54 +0100 | |
---|---|---|
committer | 2021-01-20 08:47:18 +0100 | |
commit | 785d5189f617bab7d5dde668563fc4889e46f695 (patch) | |
tree | 67a3d41998725d77aadc98c1d57de4a0c7f459d8 /stats/scatterseries.cpp | |
parent | d7878dad36e176ef0e2e1c54db891e115d29b489 (diff) | |
download | subsurface-785d5189f617bab7d5dde668563fc4889e46f695.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/scatterseries.cpp')
-rw-r--r-- | stats/scatterseries.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<InformationBox>(scene); + information = view.createChartItem<InformationBox>(); std::vector<QString> text; text.reserve(highlighted.size() * 5); |