summaryrefslogtreecommitdiff
path: root/tests/fute/pieCharts/pieCharts_test.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:49:10 +1200
commitd24f813f3f2a05c112e803e4256b53535895fc98 (patch)
tree601e6ae9a1cd44bcfdcf91739a5ca36aedd827c9 /tests/fute/pieCharts/pieCharts_test.h
Initial mirror commitHEADmaster
Diffstat (limited to 'tests/fute/pieCharts/pieCharts_test.h')
-rw-r--r--tests/fute/pieCharts/pieCharts_test.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/fute/pieCharts/pieCharts_test.h b/tests/fute/pieCharts/pieCharts_test.h
new file mode 100644
index 0000000..835ff72
--- /dev/null
+++ b/tests/fute/pieCharts/pieCharts_test.h
@@ -0,0 +1,34 @@
+#ifndef PIE_CHARTS_TEST_H
+#define PIE_CHARTS_TEST_H
+
+#include <QtCore>
+#include <QtWidgets>
+
+#include "../../../src/charts/DataPoint.h"
+
+class PieChart;
+
+class PieChartsTest: public QWidget
+{
+ Q_OBJECT
+public:
+ static const QStringList Labels;
+
+public:
+ PieChartsTest();
+
+private:
+ void createUi();
+ void addDataPoint(int index);
+
+private slots:
+ void changeDataSet();
+
+private:
+ QString yValuesStr;
+ PieChart* chart;
+ QList<DataPoint> dataSet;
+ QLabel* valuesLabel;
+};
+
+#endif