##// END OF EJS Templates
BarGroup and Bar as ChartItems instead of GraphicItems
BarGroup and Bar as ChartItems instead of GraphicItems

File last commit:

r67:8474a34cb818
r74:5412c444e1e8
Show More
xylinechartitem_p.h
38 lines | 784 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;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
//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;
bool m_dirty;
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