##// END OF EJS Templates
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code
enablers for tooltip and floating values, bug fixing, updated examples. tidying up the code

File last commit:

r291:2b7ffa40a22f
r296:8254aab7233d
Show More
axisanimationitem_p.h
44 lines | 869 B | text/x-c | CLexer
/ src / 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 QChartAxis;
class AxisAnimationItem : public AxisItem
{
Q_OBJECT
public:
AxisAnimationItem(AxisType type = X_AXIS,QGraphicsItem* parent = 0);
~AxisAnimationItem();
void setLabelsAngle(int angle);
protected:
void updateItems(QVector<qreal>& vector);
};
class AxisAnimator: public QVariantAnimation
{
public:
AxisAnimator(AxisItem *axis);
virtual ~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_ */