##// END OF EJS Templates
Animation framework for barchart.
Animation framework for barchart.

File last commit:

r671:c28ddd8c89e3
r671:c28ddd8c89e3
Show More
baranimation_p.h
36 lines | 731 B | text/x-c | CLexer
#ifndef BARANIMATION_P_H_
#define BARANIMATION_P_H_
#include "chartanimation_p.h"
#include "barchartitem_p.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class BarChartItem;
class QBarSet;
class BarSetAnimation;
class BarAnimation : public ChartAnimation
{
Q_OBJECT
public:
BarAnimation(BarChartItem *item);
~BarAnimation();
void updateValues(const BarLayout& layout);
public: // from QVariantAnimation
virtual QVariant interpolated (const QVariant & from, const QVariant & to, qreal progress ) const;
virtual void updateCurrentValue (const QVariant & value );
public Q_SLOTS:
private:
BarChartItem *m_item;
QHash<QBarSet*, BarSetAnimation*> m_animations;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif