@@ -148,8 +148,8 void ChartPresenter::handleSeriesAdded(QSeries* series,Domain* domain) | |||
|
148 | 148 | QAreaSeries* areaSeries = static_cast<QAreaSeries*>(series); |
|
149 | 149 | AreaChartItem* area = new AreaChartItem(areaSeries,m_chart); |
|
150 | 150 | if(m_options.testFlag(QChart::SeriesAnimations)) { |
|
151 | m_animator->addAnimation(area->upperLineItem()); | |
|
152 | if(areaSeries->lowerSeries()) m_animator->addAnimation(area->lowerLineItem()); | |
|
151 | m_animator->addAnimation(area->upperLineItem()); | |
|
152 | if(areaSeries->lowerSeries()) m_animator->addAnimation(area->lowerLineItem()); | |
|
153 | 153 | } |
|
154 | 154 | m_chartTheme->decorate(areaSeries, m_dataset->seriesIndex(series),m_themeForce); |
|
155 | 155 | QObject::connect(this,SIGNAL(geometryChanged(const QRectF&)),area,SLOT(handleGeometryChanged(const QRectF&))); |
@@ -265,7 +265,7 void ChartPresenter::handleSeriesRemoved(QSeries* series) | |||
|
265 | 265 | QAreaSeries* areaSeries = static_cast<QAreaSeries*>(series); |
|
266 | 266 | AreaChartItem* area = static_cast<AreaChartItem*>(item); |
|
267 | 267 | m_animator->removeAnimation(area->upperLineItem()); |
|
268 |
if(areaSeries->lowerSeries()) m_animator-> |
|
|
268 | if(areaSeries->lowerSeries()) m_animator->removeAnimation(area->lowerLineItem()); | |
|
269 | 269 | }else |
|
270 | 270 | m_animator->removeAnimation(item); |
|
271 | 271 | } |
General Comments 0
You need to be logged in to leave comments.
Login now