##// 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 QList<QGraphicsItem *> shades = m_shades->childItems();
82 QList<QGraphicsItem *> shades = m_shades->childItems();
83 QList<QGraphicsItem *> axis = m_arrow->childItems();
83 QList<QGraphicsItem *> axis = m_arrow->childItems();
84
84
85 // qreal height = 2*m_rect.bottom();
86
87 for (int i = 0; i < labels.count(); i++) {
85 for (int i = 0; i < labels.count(); i++) {
88 labels.at(i)->setVisible(false);
86 labels.at(i)->setVisible(false);
89 }
87 }
@@ -115,14 +113,6 void ChartCategoryAxisY::updateGeometry()
115 else
113 else
116 labelItem->setVisible(true);
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 m_minWidth=qMax(rect.width()+label_padding,m_minWidth);
116 m_minWidth=qMax(rect.width()+label_padding,m_minWidth);
127 m_minHeight+=rect.height();
117 m_minHeight+=rect.height();
128
118
@@ -87,10 +87,6 QCategoryAxis::QCategoryAxis(QObject *parent):
87 */
87 */
88 QCategoryAxis::~QCategoryAxis()
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 Q_UNUSED(count);
277 Q_UNUSED(count);
282 Q_UNUSED(min);
278 Q_UNUSED(min);
283 Q_UNUSED(max);
279 Q_UNUSED(max);
284 //m_min = min;
285 //m_max = max;
286 }
280 }
287
281
288 ChartAxis* QCategoryAxisPrivate::createGraphics(ChartPresenter* presenter)
282 ChartAxis* QCategoryAxisPrivate::createGraphics(ChartPresenter* presenter)
General Comments 0
You need to be logged in to leave comments. Login now