##// END OF EJS Templates
Started to refactor the API to allow integrating different plot types
Started to refactor the API to allow integrating different plot types

File last commit:

r19:b231f8e5fa43
r19:b231f8e5fa43
Show More
qchart.h
40 lines | 747 B | text/x-c | CLexer
Michal Klocek
adds missing files form previous commit
r12 #ifndef CHART_H
#define CHART_H
#include <qchartconfig.h>
#include <qxyseries.h>
#include <QGraphicsItem>
QCHART_BEGIN_NAMESPACE
class QCHART_EXPORT QChart : public QGraphicsItem
{
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 public:
enum DataSeriesType {
DataSeriesTypeLine = 0,
DataSeriesTypeArea,
DataSeriesTypeBar,
DataSeriesTypePie,
DataSeriesTypeScatter,
DataSeriesTypeSpline
};
Michal Klocek
adds missing files form previous commit
r12
protected:
QChart(QGraphicsItem* parent =0);
public:
virtual ~QChart();
static QChart* createXYLineChart(const QList<QXYSeries*>& dataset);
virtual void setSize(const QSizeF& rect)=0;
void setMargin(int margin);
int margin() const { return m_marginSize;}
private:
int m_marginSize;
};
QCHART_END_NAMESPACE
#endif