##// END OF EJS Templates
Fixed build error caused by QSeries name change
Fixed build error caused by QSeries name change

File last commit:

r677:2b967c4f6e8e
r733:a8e3d9a5ee37
Show More
splinechartitem_p.h
46 lines | 1.0 KiB | text/x-c | CLexer
#ifndef SPLINECHARTITEM_P_H
#define SPLINECHARTITEM_P_H
#include "qsplineseries.h"
#include "xychartitem_p.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class SplineChartItem : public XYChartItem
{
Q_OBJECT
public:
SplineChartItem(QSplineSeries* series, ChartPresenter *presenter);
//from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPainterPath shape() const;
public slots:
void handleUpdated();
protected:
void setLayout(QVector<QPointF>& points,QVector<QPointF>& controlPoints);
void updateLayout(QVector<QPointF>& oldPoints,QVector<QPointF>& newPoints,int index);
private:
QPointF calculateGeometryControlPoint(int index) const;
private:
QSplineSeries* m_series;
QPainterPath m_path;
QRectF m_rect;
QPen m_linePen;
QPen m_pointPen;
bool m_pointsVisible;
QVector<QPointF> m_controlPoints;
friend class SplineAnimation;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // SPLINECHARTITEM_P_H