xylinechartitem_p.h
39 lines
| 845 B
| text/x-c
|
CLexer
Michal Klocek
|
r21 | #ifndef XYLINECHARTITEM_H | ||
#define XYLINECHARTITEM_H | ||||
Tero Ahola
|
r30 | #include "qchartglobal.h" | ||
Michal Klocek
|
r67 | #include "chartitem_p.h" | ||
Michal Klocek
|
r21 | |||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||
Michal Klocek
|
r21 | |||
class QXYChartSeries; | ||||
Michal Klocek
|
r67 | class XYLineChartItem : public ChartItem | ||
Michal Klocek
|
r21 | { | ||
public: | ||||
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0); | ||||
Michal Klocek
|
r67 | ~ XYLineChartItem(){}; | ||
Michal Klocek
|
r21 | |||
//from QGraphicsItem | ||||
Michal Klocek
|
r67 | QRectF boundingRect() const; | ||
Michal Klocek
|
r85 | void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){}; | ||
// virtual QPainterPath shape() const; | ||||
Michal Klocek
|
r67 | //from ChartItem | ||
void setSize(const QSize& size); | ||||
void setPlotDomain(const PlotDomain& data); | ||||
Michal Klocek
|
r21 | |||
Michal Klocek
|
r67 | private: | ||
void updateGeometry(); | ||||
Michal Klocek
|
r21 | |||
private: | ||||
Michal Klocek
|
r67 | QRect m_rect; | ||
Michal Klocek
|
r21 | QPolygonF m_polyline; | ||
QXYChartSeries* m_series; | ||||
Michal Klocek
|
r67 | PlotDomain m_plotDomain; | ||
Michal Klocek
|
r85 | QGraphicsPathItem *m_pathItem; | ||
Michal Klocek
|
r21 | }; | ||
Tero Ahola
|
r30 | QTCOMMERCIALCHART_END_NAMESPACE | ||
Michal Klocek
|
r21 | |||
#endif | ||||