@@ -307,8 +307,6 QAbstractAxis *QChart::axisX(QAbstractSeries *series) const | |||
|
307 | 307 | { |
|
308 | 308 | if(!series && d_ptr->m_dataset->series().size()>0){ |
|
309 | 309 | series = d_ptr->m_dataset->series().first(); |
|
310 | }else{ | |
|
311 | return 0; | |
|
312 | 310 | } |
|
313 | 311 | |
|
314 | 312 | QList<QAbstractAxis*> axes = series->attachedAxes(); |
@@ -336,8 +334,6 QAbstractAxis *QChart::axisY(QAbstractSeries *series) const | |||
|
336 | 334 | { |
|
337 | 335 | if(!series && d_ptr->m_dataset->series().size()>0) { |
|
338 | 336 | series = d_ptr->m_dataset->series().first(); |
|
339 | } else { | |
|
340 | return 0; | |
|
341 | 337 | } |
|
342 | 338 | |
|
343 | 339 | QList<QAbstractAxis*> axes = series->attachedAxes(); |
@@ -536,10 +532,8 void QChart::setAxisX(QAbstractAxis *axis , QAbstractSeries *series) | |||
|
536 | 532 | QList<QAbstractAxis*> list = axes(Qt::Horizontal,series); |
|
537 | 533 | |
|
538 | 534 | foreach(QAbstractAxis* a, list){ |
|
539 | if(a->alignment()==axis->alignment()){ | |
|
540 | d_ptr->m_dataset->removeAxis(a); | |
|
541 | delete a; | |
|
542 | } | |
|
535 | d_ptr->m_dataset->removeAxis(a); | |
|
536 | delete a; | |
|
543 | 537 | } |
|
544 | 538 | |
|
545 | 539 | if(!d_ptr->m_dataset->axes().contains(axis)) |
@@ -557,10 +551,8 void QChart::setAxisY(QAbstractAxis *axis , QAbstractSeries *series) | |||
|
557 | 551 | QList<QAbstractAxis*> list = axes(Qt::Vertical,series); |
|
558 | 552 | |
|
559 | 553 | foreach(QAbstractAxis* a, list) { |
|
560 | if(a->alignment()==axis->alignment()) { | |
|
561 | d_ptr->m_dataset->removeAxis(a); | |
|
562 | delete a; | |
|
563 | } | |
|
554 | d_ptr->m_dataset->removeAxis(a); | |
|
555 | delete a; | |
|
564 | 556 | } |
|
565 | 557 | |
|
566 | 558 | if(!d_ptr->m_dataset->axes().contains(axis)) |
General Comments 0
You need to be logged in to leave comments.
Login now