blob: 8e60833b62c157a8f96c00fea03deaf752278e75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef PIE_CHART_H
#define PIE_CHART_H
#include <QtCore>
#include <QtWidgets>
#include "DataPoint.h"
class ChartView;
class PieChartScene;
class PieChart: public QWidget
{
public:
PieChart();
void setDataSet(const QList<DataPoint>& dataSet);
void setColors(const QStringList& colors);
private:
void createChartView();
protected:
PieChartScene* scene;
ChartView* view;
};
#endif
|