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