qscatterseries_p.h
34 lines
| 797 B
| text/x-c
|
CLexer
/ src / qscatterseries_p.h
|
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: | ||||
|
r61 | QScatterSeriesPrivate(QGraphicsItem *parent); | ||
|
r42 | |||
public: // from QGraphicsItem | ||||
|
r54 | void resize(QRectF rect); | ||
|
r42 | 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; | ||||
|
r54 | qreal m_scalex; | ||
qreal m_scaley; | ||||
|
r48 | QList<qreal> m_scenex; | ||
QList<qreal> m_sceney; | ||||
|
r64 | QColor m_markerColor; | ||
|
r42 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QSCATTERSERIES_H | ||||