diff --git a/src/qchart.cpp b/src/qchart.cpp index 2394baa..c8d792e 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -44,11 +44,6 @@ QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( QChart::~QChart(){} -QRectF QChart::boundingRect() const -{ - return m_rect; -} - void QChart::addSeries(QChartSeries* series) { // TODO: we should check the series not already added @@ -396,6 +391,7 @@ void QChart::resizeEvent(QGraphicsSceneResizeEvent *event) item->setSize(rect.size()); } + QGraphicsWidget::resizeEvent(event); update(); } diff --git a/src/qchart.h b/src/qchart.h index ec79e11..763f448 100644 --- a/src/qchart.h +++ b/src/qchart.h @@ -50,10 +50,6 @@ public: QChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0); ~QChart(); - //from QGraphicsItem - QRectF boundingRect() const; - void paint(QPainter */*painter*/, const QStyleOptionGraphicsItem */*option*/, QWidget */*widget*/) {} - void addSeries(QChartSeries* series); //TODO: QChartSeries* createSeries(QSeriesData *data, QChartSeries::QChartSeriesType type); // TODO: who owns the series now? maybe owned by chart and returned a reference instead...