@@ -33,11 +33,6 protected: | |||
|
33 | 33 | private: |
|
34 | 34 | void clear(); |
|
35 | 35 | |
|
36 | ||
|
37 | public: // from ChartItem | |
|
38 | void setSize(const QSizeF &size){}; | |
|
39 | void setPlotDomain(const PlotDomain& data){}; | |
|
40 | ||
|
41 | 36 | public: |
|
42 | 37 | void setLength(int length); |
|
43 | 38 | void setWidth(int width); |
@@ -15,14 +15,6 class ChartItem : public QGraphicsItem | |||
|
15 | 15 | public: |
|
16 | 16 | ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent){}; |
|
17 | 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 | 20 | QTCOMMERCIALCHART_END_NAMESPACE |
@@ -29,7 +29,6 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( | |||
|
29 | 29 | m_backgroundItem(0), |
|
30 | 30 | m_titleItem(0), |
|
31 | 31 | m_axisXItem(0), |
|
32 | m_plotDataIndex(0), | |
|
33 | 32 | m_chartTheme(new ChartTheme(this)), |
|
34 | 33 | //m_dataset(0), |
|
35 | 34 | m_dataset(new ChartDataSet(this)), |
@@ -38,10 +37,6 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( | |||
|
38 | 37 | { |
|
39 | 38 | // TODO: the default theme? |
|
40 | 39 | setTheme(QChart::ChartThemeDefault); |
|
41 | ||
|
42 | PlotDomain domain; | |
|
43 | m_plotDomainList << domain; | |
|
44 | ||
|
45 | 40 | //m_chartItems << m_axisXItem; |
|
46 | 41 | //m_chartItems << m_axisYItem.at(0); |
|
47 | 42 | } |
General Comments 0
You need to be logged in to leave comments.
Login now