##// END OF EJS Templates
minor. formating
Michal Klocek -
r420:ad444fe37cf4
parent child
Show More
@@ -264,7 +264,6 void ChartDataSet::setDomain(int index,QChartAxis* axis)
264 emit axisRangeChanged(axisX(),labels);
264 emit axisRangeChanged(axisX(),labels);
265 }
265 }
266
266
267
268 void ChartDataSet::clearDomains(int toIndex)
267 void ChartDataSet::clearDomains(int toIndex)
269 {
268 {
270 Q_ASSERT(toIndex>=0);
269 Q_ASSERT(toIndex>=0);
@@ -332,14 +331,14 QStringList ChartDataSet::createLabels(QChartAxis* axis,qreal min, qreal max)
332 QString label = axis->axisTickLabel(value);
331 QString label = axis->axisTickLabel(value);
333 if(label.isEmpty()){
332 if(label.isEmpty()) {
334 labels << QString::number(value);
333 labels << QString::number(value);
335 }else{
334 }
335 else {
336 labels << label;
336 labels << label;
337 }
337 }
338 }
338 }
339 return labels;
339 return labels;
340 }
340 }
341
341
342
343 void ChartDataSet::handleRangeChanged(QChartAxis* axis)
342 void ChartDataSet::handleRangeChanged(QChartAxis* axis)
344 {
343 {
345 qreal min = axis->min();
344 qreal min = axis->min();
@@ -383,7 +382,6 void ChartDataSet::handleRangeChanged(QChartAxis* axis)
383 setDomain(m_domainIndex,axis);
382 setDomain(m_domainIndex,axis);
384 }
383 }
385
384
386
387 }
385 }
388
386
389 void ChartDataSet::handleTickChanged(QChartAxis* axis)
387 void ChartDataSet::handleTickChanged(QChartAxis* axis)
@@ -392,7 +390,8 void ChartDataSet::handleTickChanged(QChartAxis* axis)
392 Domain domain = m_domainMap.value(axisY());
390 Domain domain = m_domainMap.value(axisY());
393 QStringList labels = createLabels(axis,domain.m_minX,domain.m_maxX);
391 QStringList labels = createLabels(axis,domain.m_minX,domain.m_maxX);
394 emit axisRangeChanged(axis,labels);
392 emit axisRangeChanged(axis,labels);
395 }else{
393 }
394 else {
396 Domain domain = m_domainMap.value(axis);
395 Domain domain = m_domainMap.value(axis);
397 QStringList labels = createLabels(axis,domain.m_minY,domain.m_maxY);
396 QStringList labels = createLabels(axis,domain.m_minY,domain.m_maxY);
398 emit axisRangeChanged(axis,labels);
397 emit axisRangeChanged(axis,labels);
General Comments 0
You need to be logged in to leave comments. Login now