##// END OF EJS Templates
Removes obsolete functions...
Michal Klocek -
r141:c4fe96eff980
parent child
Show More
@@ -33,11 +33,6 protected:
33 private:
33 private:
34 void clear();
34 void clear();
35
35
36
37 public: // from ChartItem
38 void setSize(const QSizeF &size){};
39 void setPlotDomain(const PlotDomain& data){};
40
41 public:
36 public:
42 void setLength(int length);
37 void setLength(int length);
43 void setWidth(int width);
38 void setWidth(int width);
@@ -15,14 +15,6 class ChartItem : public QGraphicsItem
15 public:
15 public:
16 ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent){};
16 ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent){};
17 virtual ~ChartItem(){};
17 virtual ~ChartItem(){};
18
19 virtual void setSize(const QSizeF& size) = 0;
20 virtual void setPlotDomain(const PlotDomain& data) = 0;
21
22 //future interface
23 virtual void setDomain(const Domain& data){};
24 virtual void updateItem(){};
25 virtual ChartAnimationManager* animationManager(){ return 0;};
26 };
18 };
27
19
28 QTCOMMERCIALCHART_END_NAMESPACE
20 QTCOMMERCIALCHART_END_NAMESPACE
@@ -29,7 +29,6 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget(
29 m_backgroundItem(0),
29 m_backgroundItem(0),
30 m_titleItem(0),
30 m_titleItem(0),
31 m_axisXItem(0),
31 m_axisXItem(0),
32 m_plotDataIndex(0),
33 m_chartTheme(new ChartTheme(this)),
32 m_chartTheme(new ChartTheme(this)),
34 //m_dataset(0),
33 //m_dataset(0),
35 m_dataset(new ChartDataSet(this)),
34 m_dataset(new ChartDataSet(this)),
@@ -38,10 +37,6 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget(
38 {
37 {
39 // TODO: the default theme?
38 // TODO: the default theme?
40 setTheme(QChart::ChartThemeDefault);
39 setTheme(QChart::ChartThemeDefault);
41
42 PlotDomain domain;
43 m_plotDomainList << domain;
44
45 //m_chartItems << m_axisXItem;
40 //m_chartItems << m_axisXItem;
46 //m_chartItems << m_axisYItem.at(0);
41 //m_chartItems << m_axisYItem.at(0);
47 }
42 }
@@ -87,8 +87,6 private:
87 QRectF m_rect;
87 QRectF m_rect;
88 QList<QChartSeries *> m_chartSeries;
88 QList<QChartSeries *> m_chartSeries;
89 QList<ChartItem *> m_chartItems;
89 QList<ChartItem *> m_chartItems;
90 QVector<PlotDomain> m_plotDomainList;
91 int m_plotDataIndex;
92 ChartTheme *m_chartTheme;
90 ChartTheme *m_chartTheme;
93
91
94
92
General Comments 0
You need to be logged in to leave comments. Login now