##// END OF EJS Templates
Add build stamp and git head support for debug
Add build stamp and git head support for debug

File last commit:

r668:ea2480445e4a
r715:f8597835a464
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