From a349c387ac622fd1d2b4cf644251b5d58d6cf54a 2012-01-27 09:13:44 From: sauimone Date: 2012-01-27 09:13:44 Subject: [PATCH] removed old resize method from barchart --- diff --git a/src/barchart/bargroup.cpp b/src/barchart/bargroup.cpp index bb51a7b..f372dcd 100644 --- a/src/barchart/bargroup.cpp +++ b/src/barchart/bargroup.cpp @@ -23,9 +23,11 @@ BarGroup::BarGroup(BarChartSeries& series, QGraphicsItem *parent) : void BarGroup::setSize(const QSize& size) { - // TODO: refactor this qDebug() << "BarGroup::setSize"; - resize(size.width(),size.height()); + mWidth = size.width(); + mHeight = size.height(); + layoutChanged(); + mLayoutSet = true; } void BarGroup::setPlotDomain(const PlotDomain& data) @@ -34,16 +36,6 @@ void BarGroup::setPlotDomain(const PlotDomain& data) // TODO: } - -void BarGroup::resize( int w, int h ) -{ - qDebug() << "QBarChart::resize"; - mWidth = w; - mHeight = h; - layoutChanged(); - mLayoutSet = true; -} - void BarGroup::setBarWidth( int w ) { mBarDefaultWidth = w; diff --git a/src/barchart/bargroup.h b/src/barchart/bargroup.h index af8d53d..48e94ee 100644 --- a/src/barchart/bargroup.h +++ b/src/barchart/bargroup.h @@ -34,7 +34,6 @@ public: virtual void setPlotDomain(const PlotDomain& data); // Layout "api" - void resize( int w, int h ); // Size for whole series. Single bars are drawn inside this area void setPos(qreal x, qreal y); void setBarWidth( int w ); // Default width for each bar