From c28f6c761b2a576d15f55d1377d1992b986cb474 2012-03-16 15:18:00 From: Michal Klocek Date: 2012-03-16 15:18:00 Subject: [PATCH] Renames axisitem applyLayout to updateLayout --- diff --git a/src/animations/chartanimator.cpp b/src/animations/chartanimator.cpp index e377927..63f90eb 100644 --- a/src/animations/chartanimator.cpp +++ b/src/animations/chartanimator.cpp @@ -90,7 +90,7 @@ void ChartAnimator::removeAnimation(ChartItem* item) m_animations.remove(item); } -void ChartAnimator::applyLayout(AxisItem* item , QVector& newLayout) +void ChartAnimator::updateLayout(AxisItem* item , QVector& newLayout) { AxisAnimation* animation = static_cast(m_animations.value(item)); diff --git a/src/animations/chartanimator_p.h b/src/animations/chartanimator_p.h index bf90269..b4cdf69 100644 --- a/src/animations/chartanimator_p.h +++ b/src/animations/chartanimator_p.h @@ -33,7 +33,7 @@ public: void animationStarted(); void updateLayout(XYChartItem* item, QVector& oldLayout,QVector& newLayout,int index); void updateLayout(SplineChartItem* item, QVector& oldPoints , QVector& newPoints, QVector& oldControlPoints, QVector& newContorlPoints,int index); - void applyLayout(AxisItem* item, QVector& layout); + void updateLayout(AxisItem* item, QVector& layout); void addAnimation(PieChartItem* item, QPieSlice *slice, const PieSliceLayout &layout, bool isEmpty); void removeAnimation(PieChartItem* item, QPieSlice *slice); diff --git a/src/axis/axisitem.cpp b/src/axis/axisitem.cpp index 1f8ef16..6359fb6 100644 --- a/src/axis/axisitem.cpp +++ b/src/axis/axisitem.cpp @@ -75,7 +75,7 @@ void AxisItem::deleteItems(int count) void AxisItem::updateLayout(QVector& layout) { if(m_animator){ - m_animator->applyLayout(this,layout); + m_animator->updateLayout(this,layout); } else setLayout(layout); }