##// END OF EJS Templates
Test app now adds n data series of different type
Test app now adds n data series of different type

File last commit:

r19:b231f8e5fa43
r20:1184ba596217
Show More
qchart.cpp
29 lines | 546 B | text/x-c | CppLexer
Michal Klocek
adds missing files form previous commit
r12 #include "qchart.h"
#include "xylinechart_p.h"
QCHART_BEGIN_NAMESPACE
QChart::QChart(QGraphicsItem* parent):QGraphicsItem(parent),
m_marginSize(0)
{
// setFlags(QGraphicsItem::ItemClipsChildrenToShape);
}
QChart::~QChart(){}
QChart* QChart::createXYLineChart(const QList<QXYSeries*>& dataset)
{
XYLineChart* chart = new XYLineChart();
foreach (const QXYSeries* series,dataset) {
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 chart->addXYSeries(series);
Michal Klocek
adds missing files form previous commit
r12 }
return chart;
}
void QChart::setMargin(int margin)
{
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 m_marginSize = margin;
Michal Klocek
adds missing files form previous commit
r12 }
QCHART_END_NAMESPACE