##// END OF EJS Templates
Title and name of QSeries replaced with name
Title and name of QSeries replaced with name

File last commit:

r668:ea2480445e4a
r731:90a16700f8b3
Show More
piesliceanimation_p.h
33 lines | 807 B | text/x-c | CLexer
#ifndef PIESLICEANIMATION_P_H_
#define PIESLICEANIMATION_P_H_
#include "piechartitem_p.h"
#include <QVariantAnimation>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class PieChartItem;
class QPieSlice;
class PieSliceAnimation : public QVariantAnimation
{
public:
PieSliceAnimation(PieChartItem *item, QPieSlice *slice);
~PieSliceAnimation();
void setValue(const PieSliceData &startValue, const PieSliceData &endValue);
void updateValue(const PieSliceData &endValue);
PieSliceData currentSliceValue();
protected:
QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress) const;
void updateCurrentValue(const QVariant &value);
private:
PieChartItem *m_item;
QPieSlice *m_slice;
PieSliceData m_currentValue;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif