##// END OF EJS Templates
Refactor xyplotdata...
Refactor xyplotdata * rename xyplotdata to xyplotdomain * add proper initialization list to constructor * change xylinechartitem update interface

File last commit:

r25:9ee7e26e06fe
r25:9ee7e26e06fe
Show More
xylinechartitem_p.h
33 lines | 690 B | text/x-c | CLexer
#ifndef XYLINECHARTITEM_H
#define XYLINECHARTITEM_H
#include "qchartconfig.h"
#include "qchart.h"
#include "xyplotdomain_p.h"
QCHART_BEGIN_NAMESPACE
class QXYChartSeries;
class XYLineChartItem : public QGraphicsItem
{
public:
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0);
virtual ~ XYLineChartItem(){};
//from QGraphicsItem
virtual QRectF boundingRect() const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void updateXYPlotData(const XYPlotDomain& data);
private:
QPolygonF m_polyline;
QXYChartSeries* m_series;
XYPlotDomain m_xyPlotData;
};
QCHART_END_NAMESPACE
#endif