##// END OF EJS Templates
Removes obsolete functions...
Removes obsolete functions * removes old interface from chartitem

File last commit:

r71:1f789ed92d7b
r141:c4fe96eff980
Show More
qchartseries.cpp
34 lines | 849 B | text/x-c | CppLexer
#include "qchartglobal.h"
#include "qchartseries.h"
#include "barchartseries.h"
#include "qxychartseries.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
QChartSeries* QChartSeries::create(QChartSeriesType type, QObject* parent)
{
qDebug() << "QChartSeries::create";
// TODO: Other types
switch (type) {
case QChartSeries::SeriesTypeLine: {
QXYChartSeries* s = QXYChartSeries::create(parent); // TODO: do we need create method for derived implementations?
return s;
}
case QChartSeries::SeriesTypePie: {
return 0;
}
case QChartSeries::SeriesTypeScatter: {
return 0;
}
case QChartSeries::SeriesTypeBar: {
BarChartSeries* s = new BarChartSeries(parent);
return s;
}
default:
return 0;
}
}
#include "moc_qchartseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE