##// END OF EJS Templates
QCategoryAxis: some commented out code removed
Marek Rosa -
r1975:34236310382e
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 }
@@ -115,14 +113,6 void ChartCategoryAxisY::updateGeometry()
115 113 else
116 114 labelItem->setVisible(true);
117 115
118 // if(labelItem->pos().y()+rect.height()>height) {
119 // labelItem->setVisible(false);
120 // }
121 // else {
122 // labelItem->setVisible(true);
123 // height=labelItem->pos().y();
124 // }
125
126 116 m_minWidth=qMax(rect.width()+label_padding,m_minWidth);
127 117 m_minHeight+=rect.height();
128 118
@@ -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