##// END OF EJS Templates
Integrated scatter type series...
Integrated scatter type series Also added an implementation for creating series graphic items with a simple class derived from QChartSeries.

File last commit:

r42:5fcd249308db
r42:5fcd249308db
Show More
qscatterseries_p.h
29 lines | 699 B | text/x-c | CLexer
/ src / qscatterseries_p.h
Tero Ahola
Integrated scatter type series...
r42 #ifndef QSCATTERSERIESPRIVATE_H
#define QSCATTERSERIESPRIVATE_H
#include "qchartseries.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
* The PIMPL class of QScatterSeries.
*/
class QScatterSeriesPrivate : public QGraphicsItem
{
public:
QScatterSeriesPrivate(QList<qreal> x, QList<qreal> y, QGraphicsItem *parent);
public: // from QGraphicsItem
void setSize();
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
// TODO: use the chart data class instead of list of x and y values?
QList<qreal> m_x;
QList<qreal> m_y;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H