##// END OF EJS Templates
Refactored the test app
Refactored the test app

File last commit:

r108:4cbe204cc325
r110:d11ac5a26e2a
Show More
xylinechartitem_p.h
41 lines | 874 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"
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include "chartitem_p.h"
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103 #include <QGraphicsItem>
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;
Tero Ahola
Refactoring continued: restored ChartItem class
r104 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;
Tero Ahola
One more alternative for changing themes
r108 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
Michal Klocek
Refactora axis and line chart to use graphics items insted of painter.
r85 // virtual QPainterPath shape() const;
Tero Ahola
Refactored themes; now enabled for line, scatter and pies...
r103
Tero Ahola
One more alternative for changing themes
r108 public: // from ChartItem
Tero Ahola
Refactoring continued: restored ChartItem class
r104 void setSize(const QSize &size);
Michal Klocek
Add zoom support...
r67 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