@@ -78,6 +78,15 void ChartDataSet::addSeries(QAbstractSeries *series) | |||||
78 | return; |
|
78 | return; | |
79 | } |
|
79 | } | |
80 | series->d_ptr->setDomain(new XYPolarDomain()); |
|
80 | series->d_ptr->setDomain(new XYPolarDomain()); | |
|
81 | // Set the correct domain for upper and lower series too | |||
|
82 | if (series->type() == QAbstractSeries::SeriesTypeArea) { | |||
|
83 | foreach (QObject *child, series->children()) { | |||
|
84 | if (qobject_cast<QAbstractSeries *>(child)) { | |||
|
85 | QAbstractSeries *childSeries = qobject_cast<QAbstractSeries *>(child); | |||
|
86 | childSeries->d_ptr->setDomain(new XYPolarDomain()); | |||
|
87 | } | |||
|
88 | } | |||
|
89 | } | |||
81 | } else { |
|
90 | } else { | |
82 | series->d_ptr->setDomain(new XYDomain()); |
|
91 | series->d_ptr->setDomain(new XYDomain()); | |
83 | } |
|
92 | } |
General Comments 0
You need to be logged in to leave comments.
Login now