##// END OF EJS Templates
git acrobatics
git acrobatics

File last commit:

r67:8474a34cb818
r84:64dd93b1af28
Show More
xylinechartitem_p.h
38 lines | 784 B | text/x-c | CLexer
#ifndef XYLINECHARTITEM_H
#define XYLINECHARTITEM_H
#include "qchartglobal.h"
#include "chartitem_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QXYChartSeries;
class XYLineChartItem : public ChartItem
{
public:
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0);
~ XYLineChartItem(){};
//from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
//from ChartItem
void setSize(const QSize& size);
void setPlotDomain(const PlotDomain& data);
private:
void updateGeometry();
private:
QRect m_rect;
QPolygonF m_polyline;
QXYChartSeries* m_series;
PlotDomain m_plotDomain;
bool m_dirty;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif