##// END OF EJS Templates
added stream operator to scatter series
added stream operator to scatter series

File last commit:

r180:6a67b4477dab
r180:6a67b4477dab
Show More
qscatterseries.cpp
59 lines | 972 B | text/x-c | CppLexer
/ src / qscatterseries.cpp
Tero Ahola
Integrated scatter type series...
r42 #include "qscatterseries.h"
#include "qscatterseries_p.h"
#include "qchart.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeriesPrivate::QScatterSeriesPrivate() :
m_data(QList<QPointF>())
Tero Ahola
Integrated scatter type series...
r42 {
}
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::QScatterSeries(QObject *parent) :
QChartSeries(parent),
d(new QScatterSeriesPrivate())
Tero Ahola
Integrated scatter type series...
r42 {
}
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeries::~QScatterSeries()
Tero Ahola
Integrated scatter type series...
r42 {
Tero Ahola
Integrated scatter again. Missing functionality....
r158 delete d;
Tero Ahola
Resizing of QGraphicItems now possible by resize signal from QChart
r48 }
Tero Ahola
added stream operator to scatter series
r180 void QScatterSeries::addData(QPointF value)
Tero Ahola
Refactored series creation with QChart
r61 {
Tero Ahola
added stream operator to scatter series
r180 d->m_data.append(value);
emit changed();
}
QScatterSeries& QScatterSeries::operator << (const QPointF &value)
{
d->m_data.append(value);
Tero Ahola
Modifying QScatterSeries API
r179 emit changed();
Tero Ahola
added stream operator to scatter series
r180 return *this;
Tero Ahola
Modifying QScatterSeries API
r179 }
Tero Ahola
Integrated scatter again. Missing functionality....
r158
Tero Ahola
added stream operator to scatter series
r180 void QScatterSeries::setData(QList<QPointF> data)
Tero Ahola
Modifying QScatterSeries API
r179 {
Tero Ahola
added stream operator to scatter series
r180 d->m_data = data;
Tero Ahola
Integrated scatter again. Missing functionality....
r158 emit changed();
Tero Ahola
Refactored series creation with QChart
r61 }
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QList<QPointF> QScatterSeries::data()
Tero Ahola
Draft implementation for setting color themes for a chart
r64 {
Tero Ahola
Integrated scatter again. Missing functionality....
r158 return d->m_data;
Tero Ahola
Draft implementation for setting color themes for a chart
r64 }
Tero Ahola
Modifying QScatterSeries API
r179 void QScatterSeries::setMarkerPen(QPen pen)
Tero Ahola
Color themes now enabled for scatter, pie and line series.
r75 {
Tero Ahola
Modifying QScatterSeries API
r179 d->m_markerPen = pen;
Tero Ahola
Color themes now enabled for scatter, pie and line series.
r75 }
Tero Ahola
Modifying QScatterSeries API
r179 QPen QScatterSeries::markerPen()
Tero Ahola
Integrated scatter type series...
r42 {
Tero Ahola
Modifying QScatterSeries API
r179 return d->m_markerPen;
Tero Ahola
Integrated scatter type series...
r42 }
#include "moc_qscatterseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE