From c4fe96eff98072a9e71cd8237320e21651044c32 2012-02-08 16:36:39 From: Michal Klocek Date: 2012-02-08 16:36:39 Subject: [PATCH] Removes obsolete functions * removes old interface from chartitem --- diff --git a/src/axisitem_p.h b/src/axisitem_p.h index c8dd8a4..4e14878 100644 --- a/src/axisitem_p.h +++ b/src/axisitem_p.h @@ -33,11 +33,6 @@ protected: private: void clear(); - -public: // from ChartItem - void setSize(const QSizeF &size){}; - void setPlotDomain(const PlotDomain& data){}; - public: void setLength(int length); void setWidth(int width); diff --git a/src/chartitem_p.h b/src/chartitem_p.h index 354a695..547e051 100644 --- a/src/chartitem_p.h +++ b/src/chartitem_p.h @@ -15,14 +15,6 @@ class ChartItem : public QGraphicsItem public: ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent){}; virtual ~ChartItem(){}; - - virtual void setSize(const QSizeF& size) = 0; - virtual void setPlotDomain(const PlotDomain& data) = 0; - - //future interface - virtual void setDomain(const Domain& data){}; - virtual void updateItem(){}; - virtual ChartAnimationManager* animationManager(){ return 0;}; }; QTCOMMERCIALCHART_END_NAMESPACE diff --git a/src/qchart.cpp b/src/qchart.cpp index 51d044e..c7eef49 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -29,7 +29,6 @@ QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( m_backgroundItem(0), m_titleItem(0), m_axisXItem(0), - m_plotDataIndex(0), m_chartTheme(new ChartTheme(this)), //m_dataset(0), m_dataset(new ChartDataSet(this)), @@ -38,10 +37,6 @@ QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( { // TODO: the default theme? setTheme(QChart::ChartThemeDefault); - - PlotDomain domain; - m_plotDomainList << domain; - //m_chartItems << m_axisXItem; //m_chartItems << m_axisYItem.at(0); } diff --git a/src/qchart.h b/src/qchart.h index fc55c8f..03a2018 100644 --- a/src/qchart.h +++ b/src/qchart.h @@ -87,8 +87,6 @@ private: QRectF m_rect; QList m_chartSeries; QList m_chartItems; - QVector m_plotDomainList; - int m_plotDataIndex; ChartTheme *m_chartTheme;