##// END OF EJS Templates
Fixes line uder grid issue
Fixes line uder grid issue

File last commit:

r180:6a67b4477dab
r190:3ea3ba4a3395
Show More
qscatterseries.cpp
59 lines | 972 B | text/x-c | CppLexer
/ src / qscatterseries.cpp
#include "qscatterseries.h"
#include "qscatterseries_p.h"
#include "qchart.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
QScatterSeriesPrivate::QScatterSeriesPrivate() :
m_data(QList<QPointF>())
{
}
QScatterSeries::QScatterSeries(QObject *parent) :
QChartSeries(parent),
d(new QScatterSeriesPrivate())
{
}
QScatterSeries::~QScatterSeries()
{
delete d;
}
void QScatterSeries::addData(QPointF value)
{
d->m_data.append(value);
emit changed();
}
QScatterSeries& QScatterSeries::operator << (const QPointF &value)
{
d->m_data.append(value);
emit changed();
return *this;
}
void QScatterSeries::setData(QList<QPointF> data)
{
d->m_data = data;
emit changed();
}
QList<QPointF> QScatterSeries::data()
{
return d->m_data;
}
void QScatterSeries::setMarkerPen(QPen pen)
{
d->m_markerPen = pen;
}
QPen QScatterSeries::markerPen()
{
return d->m_markerPen;
}
#include "moc_qscatterseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE