##// END OF EJS Templates
Fix bug/typo in chartdataset
Fix bug/typo in chartdataset

File last commit:

r793:dbc1daf2590a
r828:efd18f904bfe
Show More
declarativesplineseries.cpp
36 lines | 997 B | text/x-c | CppLexer
/ qmlplugin / declarativesplineseries.cpp
Tero Ahola
Declarative series classed now derived from QSeries childs
r789 #include "declarativesplineseries.h"
#include "declarativechart.h"
#include "qchart.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
DeclarativeSplineSeries::DeclarativeSplineSeries(QObject *parent) :
QSplineSeries(parent)
{
}
Tero Ahola
Refactoring declarative xy series
r793 void DeclarativeSplineSeries::componentComplete()
Tero Ahola
Declarative series classed now derived from QSeries childs
r789 {
DeclarativeChart *declarativeChart = qobject_cast<DeclarativeChart *>(parent());
if (declarativeChart) {
QChart *chart = qobject_cast<QChart *>(declarativeChart->m_chart);
Q_ASSERT(chart);
chart->addSeries(this);
}
}
QDeclarativeListProperty<DeclarativeXyPoint> DeclarativeSplineSeries::points()
{
Tero Ahola
Refactoring declarative xy series
r793 return QDeclarativeListProperty<DeclarativeXyPoint>(this, 0, &DeclarativeXySeries::appendPoints);
Tero Ahola
Declarative series classed now derived from QSeries childs
r789 }
void DeclarativeSplineSeries::appendPoints(QDeclarativeListProperty<DeclarativeXyPoint> *list,
DeclarativeXyPoint *element)
{
DeclarativeXySeries::appendPoints(list, element);
}
#include "moc_declarativesplineseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE