##// END OF EJS Templates
Fixed a bug in vanilla theme
Fixed a bug in vanilla theme

File last commit:

r502:c37a1568cc38
r526:8593b87d6899
Show More
axisanimationitem_p.h
46 lines | 949 B | text/x-c | CLexer
/ src / axis / axisanimationitem_p.h
#ifndef AXISANIMATIONITEM_H_
#define AXISANIMATIONITEM_H_
#include "domain_p.h"
#include "axisitem_p.h"
#include <QGraphicsItem>
#include <QVariantAnimation>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class AxisAnimator;
class AxisAnimationItem : public AxisItem
{
Q_OBJECT
public:
AxisAnimationItem(QChartAxis* axis,AxisType type = X_AXIS,QGraphicsItem* parent = 0);
~AxisAnimationItem();
void setLabelsAngle(int angle);
protected:
virtual void updateLayout(QVector<qreal>& layout);
private:
AxisAnimator *m_animation;
};
class AxisAnimator: public QVariantAnimation
{
public:
AxisAnimator(AxisItem *axis,QObject *parent = 0);
~AxisAnimator();
protected:
virtual QVariant interpolated (const QVariant & from, const QVariant & to, qreal progress ) const;
virtual void updateCurrentValue (const QVariant & value );
private:
AxisItem* m_axis;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* AXISITEM_H_ */