##// END OF EJS Templates
QCategoryAxis: some commented out code removed
Marek Rosa -
r1987:7467f026c4a8
parent child
Show More
@@ -82,8 +82,6 void ChartCategoryAxisY::updateGeometry()
82 82 QList<QGraphicsItem *> shades = m_shades->childItems();
83 83 QList<QGraphicsItem *> axis = m_arrow->childItems();
84 84
85 // qreal height = 2*m_rect.bottom();
86
87 85 for (int i = 0; i < labels.count(); i++) {
88 86 labels.at(i)->setVisible(false);
89 87 }
@@ -118,14 +116,6 void ChartCategoryAxisY::updateGeometry()
118 116 else
119 117 labelItem->setVisible(true);
120 118
121 // if(labelItem->pos().y()+rect.height()>height) {
122 // labelItem->setVisible(false);
123 // }
124 // else {
125 // labelItem->setVisible(true);
126 // height=labelItem->pos().y();
127 // }
128
129 119 if ((i+1)%2 && i>1) {
130 120 QGraphicsRectItem *rectItem = static_cast<QGraphicsRectItem*>(shades.at(i/2-1));
131 121 rectItem->setRect(chartRect.left(),layout[i],chartRect.width(),layout[i-1]-layout[i]);
@@ -87,10 +87,6 QCategoryAxis::QCategoryAxis(QObject *parent):
87 87 */
88 88 QCategoryAxis::~QCategoryAxis()
89 89 {
90 // Q_D(QValueAxis);
91 // if(d->m_dataset) {
92 // d->m_dataset->removeAxis(this);
93 // }
94 90 }
95 91
96 92 /*!
@@ -281,8 +277,6 void QCategoryAxisPrivate::handleAxisRangeChanged(qreal min, qreal max,int count
281 277 Q_UNUSED(count);
282 278 Q_UNUSED(min);
283 279 Q_UNUSED(max);
284 //m_min = min;
285 //m_max = max;
286 280 }
287 281
288 282 ChartAxis* QCategoryAxisPrivate::createGraphics(ChartPresenter* presenter)
General Comments 0
You need to be logged in to leave comments. Login now