##// END OF EJS Templates
Removes obsolate methods from qchart
Michal Klocek -
r117:bd5d64e54b3e
parent child
Show More
@@ -44,11 +44,6 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget(
44
44
45 QChart::~QChart(){}
45 QChart::~QChart(){}
46
46
47 QRectF QChart::boundingRect() const
48 {
49 return m_rect;
50 }
51
52 void QChart::addSeries(QChartSeries* series)
47 void QChart::addSeries(QChartSeries* series)
53 {
48 {
54 // TODO: we should check the series not already added
49 // TODO: we should check the series not already added
@@ -396,6 +391,7 void QChart::resizeEvent(QGraphicsSceneResizeEvent *event)
396 item->setSize(rect.size());
391 item->setSize(rect.size());
397 }
392 }
398
393
394 QGraphicsWidget::resizeEvent(event);
399 update();
395 update();
400 }
396 }
401
397
@@ -50,10 +50,6 public:
50 QChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
50 QChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
51 ~QChart();
51 ~QChart();
52
52
53 //from QGraphicsItem
54 QRectF boundingRect() const;
55 void paint(QPainter */*painter*/, const QStyleOptionGraphicsItem */*option*/, QWidget */*widget*/) {}
56
57 void addSeries(QChartSeries* series);
53 void addSeries(QChartSeries* series);
58 //TODO: QChartSeries* createSeries(QSeriesData *data, QChartSeries::QChartSeriesType type);
54 //TODO: QChartSeries* createSeries(QSeriesData *data, QChartSeries::QChartSeriesType type);
59 // TODO: who owns the series now? maybe owned by chart and returned a reference instead...
55 // TODO: who owns the series now? maybe owned by chart and returned a reference instead...
General Comments 0
You need to be logged in to leave comments. Login now