##// END OF EJS Templates
Adds win32 command condition to src.pro
Adds win32 command condition to src.pro

File last commit:

r622:960bcf5125b7
r627:110f905bcf35
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, QGraphicsItem *parent = 0);
//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