##// END OF EJS Templates
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash
Bug fix for bar presenters. It appears that order of childItems may change. Relying on order caused crash

File last commit:

r195:3f425cc48265
r256:bd68fc4fe7ab
Show More
qscatterseries.cpp
85 lines | 1.6 KiB | text/x-c | CppLexer
Tero Ahola
Integrated scatter type series...
r42 #include "qscatterseries.h"
Tero Ahola
Moved scatter impl into a subfolder
r194 #include "scatterseries_p.h"
Tero Ahola
Integrated scatter type series...
r42 #include "qchart.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
Integrated scatter again. Missing functionality....
r158 QScatterSeriesPrivate::QScatterSeriesPrivate() :
Tero Ahola
Scatter series marker visuals
r195 m_data(QList<QPointF>()),
m_markerPen(QPen()),
m_markerBrush(QBrush()),
m_markerShape(QScatterSeries::MarkerShapeDefault)
Tero Ahola
Integrated scatter type series...
r42 {
Tero Ahola
Scatter series marker visuals
r195 // Initialize pen color to invalid to use a theme color by default
m_markerPen.setColor(QColor::Invalid);
m_markerBrush.setColor(QColor::Invalid);
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 }
Tero Ahola
Scatter series marker visuals
r195 void QScatterSeries::setMarkerBrush(QBrush brush)
{
d->m_markerBrush = brush;
}
QBrush QScatterSeries::markerBrush()
{
return d->m_markerBrush;
}
void QScatterSeries::setMarkerShape(MarkerShape shape)
{
d->m_markerShape = shape;
}
QScatterSeries::MarkerShape QScatterSeries::markerShape()
{
return (QScatterSeries::MarkerShape) d->m_markerShape;
}
Tero Ahola
Integrated scatter type series...
r42 #include "moc_qscatterseries.cpp"
QTCOMMERCIALCHART_END_NAMESPACE