summaryrefslogtreecommitdiff
path: root/tests/fute/pieCharts/pieCharts_test.h
diff options
context:
space:
mode:
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