##// END OF EJS Templates
correct drawing for barchart
correct drawing for barchart

File last commit:

r75:cdad8ac737ab
r82:144fd3c1acc4
Show More
qscatterseries_p.h
35 lines | 805 B | text/x-c | CLexer
/ src / qscatterseries_p.h
#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(QGraphicsItem *parent);
public: // from QGraphicsItem
void resize(QRectF rect);
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
public:
// TODO: use the chart data class instead of list of x and y values?
QList<qreal> m_x;
QList<qreal> m_y;
qreal m_scalex;
qreal m_scaley;
QList<qreal> m_scenex;
QList<qreal> m_sceney;
QColor m_markerColor;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QSCATTERSERIES_H