##// END OF EJS Templates
minor cleaning of unused code
sauimone -
r175:05f9f3d08ff3
parent child
Show More
@@ -15,8 +15,7 public:
15 15 BarGroupBase(BarChartModel& model, QGraphicsItem *parent = 0);
16 16 void setSeparatorsVisible(bool visible = true);
17 17
18 public: // From ChartItem
19 // void setSize(const QSizeF &size){};
18 public:
20 19
21 20 // From QGraphicsItem
22 21 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
@@ -39,9 +38,6 protected slots:
39 38 protected:
40 39
41 40 // TODO: consider these.
42 //int mMin; // Min and max values of data. (updated when data is changed, used when drawing)
43 //int mMax;
44
45 41 int mHeight; // Layout spesific
46 42 int mWidth;
47 43 int mBarDefaultWidth;
@@ -32,16 +32,11 public:
32 32 // Pure virtual
33 33 virtual QChartSeriesType type() const = 0;
34 34
35 virtual bool setData(QList<int> /*data*/) { return false; }
36 35 virtual bool setData(QList<qreal> /*data*/) { return false; }
37 36 virtual bool setData(QList<qreal> /*x*/, QList<qreal> /*y*/){ return false; }
38 37
39 38 // Prototype for data model. TODO: remove the other setData methods and use something like this for now?
40 virtual bool setData(QAbstractItemModel* /*model*/) { return false; }
41
42 // Methods for building a table for bar chart. Call repeatedly to add more than one series
43 virtual int addData(QList<qreal> data) {return -1;}
44 virtual void removeData(int id) {}
39 virtual bool setModel(QAbstractItemModel* /*model*/) { return false; }
45 40 };
46 41
47 42 QTCOMMERCIALCHART_END_NAMESPACE
General Comments 0
You need to be logged in to leave comments. Login now