stats: break out common QtQuick part of the code

Move most of the QtQuick code to its own directory, so that it
can be reused in the future for the chart.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2023-04-16 20:05:36 +02:00
parent 533cff96f3
commit 2eebae13dd
34 changed files with 1031 additions and 915 deletions

View file

@ -3,7 +3,6 @@
#include "chartitem.h"
#include "informationbox.h"
#include "statscolors.h"
#include "statshelper.h"
#include "statstranslations.h"
#include "statsvariables.h"
#include "statsview.h"
@ -183,7 +182,7 @@ bool ScatterSeries::hover(QPointF pos)
return false;
} else {
if (!information)
information = view.createChartItem<InformationBox>();
information = view.createChartItem<InformationBox>(theme);
std::vector<QString> text;
text.reserve(highlighted.size() * 5);