From 7467f026c4a807fad59f6286c9fe39d7f22cb7ca 2012-09-05 13:53:23 From: Marek Rosa Date: 2012-09-05 13:53:23 Subject: [PATCH] QCategoryAxis: some commented out code removed --- diff --git a/src/axis/categoryaxis/chartcategoryaxisy.cpp b/src/axis/categoryaxis/chartcategoryaxisy.cpp index 80aeab3..538721a 100644 --- a/src/axis/categoryaxis/chartcategoryaxisy.cpp +++ b/src/axis/categoryaxis/chartcategoryaxisy.cpp @@ -82,8 +82,6 @@ void ChartCategoryAxisY::updateGeometry() QList shades = m_shades->childItems(); QList axis = m_arrow->childItems(); -// qreal height = 2*m_rect.bottom(); - for (int i = 0; i < labels.count(); i++) { labels.at(i)->setVisible(false); } @@ -118,14 +116,6 @@ void ChartCategoryAxisY::updateGeometry() else labelItem->setVisible(true); -// if(labelItem->pos().y()+rect.height()>height) { -// labelItem->setVisible(false); -// } -// else { -// labelItem->setVisible(true); -// height=labelItem->pos().y(); -// } - if ((i+1)%2 && i>1) { QGraphicsRectItem *rectItem = static_cast(shades.at(i/2-1)); rectItem->setRect(chartRect.left(),layout[i],chartRect.width(),layout[i-1]-layout[i]); diff --git a/src/axis/categoryaxis/qcategoryaxis.cpp b/src/axis/categoryaxis/qcategoryaxis.cpp index 5fc5a3b..624d708 100644 --- a/src/axis/categoryaxis/qcategoryaxis.cpp +++ b/src/axis/categoryaxis/qcategoryaxis.cpp @@ -87,10 +87,6 @@ QCategoryAxis::QCategoryAxis(QObject *parent): */ QCategoryAxis::~QCategoryAxis() { - // Q_D(QValueAxis); - // if(d->m_dataset) { - // d->m_dataset->removeAxis(this); - // } } /*! @@ -281,8 +277,6 @@ void QCategoryAxisPrivate::handleAxisRangeChanged(qreal min, qreal max,int count Q_UNUSED(count); Q_UNUSED(min); Q_UNUSED(max); - //m_min = min; - //m_max = max; } ChartAxis* QCategoryAxisPrivate::createGraphics(ChartPresenter* presenter)