##// 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
#ifndef CHART_H
#define CHART_H
#include <qchartconfig.h>
#include <qxyseries.h>
#include <QGraphicsItem>
QCHART_BEGIN_NAMESPACE
class QCHART_EXPORT QChart : public QGraphicsItem
{
public:
enum DataSeriesType {
DataSeriesTypeLine = 0,
DataSeriesTypeArea,
DataSeriesTypeBar,
DataSeriesTypePie,
DataSeriesTypeScatter,
DataSeriesTypeSpline
};
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