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