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,7 @@
#ifndef STATS_LEGEND_H
#define STATS_LEGEND_H
#include "chartitem.h"
#include "qt-quick/chartitem.h"
#include <memory>
#include <vector>
@ -13,7 +13,7 @@ class StatsTheme;
class Legend : public ChartRectItem {
public:
Legend(StatsView &view, const std::vector<QString> &names);
Legend(ChartView &view, const StatsTheme &theme, const std::vector<QString> &names);
void resize(); // called when the chart size changes.
void setPos(QPointF pos); // Attention: not virtual - always call on this class.
private: