##// END OF EJS Templates
Area chart of theme example to use zero lower series
Area chart of theme example to use zero lower series

File last commit:

r536:79d5184b167f
r539:d81325ed2c25
Show More
scatterchartitem_p.h
51 lines | 1.0 KiB | text/x-c | CLexer
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 #ifndef SCATTERPRESENTER_H
#define SCATTERPRESENTER_H
#include "qchartglobal.h"
#include "xychartitem_p.h"
Michal Klocek
Fix sctter series wrong points offset issue
r536 #include <QGraphicsEllipseItem>
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 #include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QScatterSeries;
class ScatterChartItem : public XYChartItem
{
Q_OBJECT
public:
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476 explicit ScatterChartItem(QScatterSeries *series, QGraphicsItem *parent = 0);
Michal Klocek
Refactor scatter chart to fit the other classes...
r470
public:
//from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void setPen(const QPen& pen);
void setBrush(const QBrush& brush);
signals:
void clicked(QPointF coordinates);
public slots:
void handleUpdated();
private:
void createPoints(int count);
void deletePoints(int count);
protected:
virtual void setGeometry(QVector<QPointF>& points);
private:
QScatterSeries *m_series;
QGraphicsItemGroup m_items;
int m_shape;
int m_size;
QRectF m_rect;
Michal Klocek
Refactor animation to fit line,spline,scatter...
r476
Michal Klocek
Refactor scatter chart to fit the other classes...
r470 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // SCATTERPRESENTER_H