##// END OF EJS Templates
Refactora axis and line chart to use graphics items insted of painter.
Refactora axis and line chart to use graphics items insted of painter.

File last commit:

r85:f77f13ee265a
r85:f77f13ee265a
Show More
xylinechartitem_p.h
39 lines | 845 B | text/x-c | CLexer
Michal Klocek
Refactor current draft to fit int current design specs...
r21 #ifndef XYLINECHARTITEM_H
#define XYLINECHARTITEM_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Add zoom support...
r67 #include "chartitem_p.h"
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
class QXYChartSeries;
Michal Klocek
Add zoom support...
r67 class XYLineChartItem : public ChartItem
Michal Klocek
Refactor current draft to fit int current design specs...
r21 {
public:
XYLineChartItem(QXYChartSeries* m_series,QGraphicsItem *parent = 0);
Michal Klocek
Add zoom support...
r67 ~ XYLineChartItem(){};
Michal Klocek
Refactor current draft to fit int current design specs...
r21
//from QGraphicsItem
Michal Klocek
Add zoom support...
r67 QRectF boundingRect() const;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget){};
// virtual QPainterPath shape() const;
Michal Klocek
Add zoom support...
r67 //from ChartItem
void setSize(const QSize& size);
void setPlotDomain(const PlotDomain& data);
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
Add zoom support...
r67 private:
void updateGeometry();
Michal Klocek
Refactor current draft to fit int current design specs...
r21
private:
Michal Klocek
Add zoom support...
r67 QRect m_rect;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 QPolygonF m_polyline;
QXYChartSeries* m_series;
Michal Klocek
Add zoom support...
r67 PlotDomain m_plotDomain;
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 QGraphicsPathItem *m_pathItem;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Refactor current draft to fit int current design specs...
r21
#endif