##// END OF EJS Templates
Chartthemes example to use increasing x values
Chartthemes example to use increasing x values

File last commit:

r502:c37a1568cc38
r515:3aac91920670
Show More
axisanimationitem_p.h
46 lines | 949 B | text/x-c | CLexer
/ src / axis / axisanimationitem_p.h
Michal Klocek
Refactors axis layout managment...
r291 #ifndef AXISANIMATIONITEM_H_
#define AXISANIMATIONITEM_H_
#include "domain_p.h"
#include "axisitem_p.h"
#include <QGraphicsItem>
#include <QVariantAnimation>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Clean up axis animation code
r393 class AxisAnimator;
Michal Klocek
Refactors axis layout managment...
r291
class AxisAnimationItem : public AxisItem
{
Q_OBJECT
public:
Michal Klocek
Refactor domain model...
r439 AxisAnimationItem(QChartAxis* axis,AxisType type = X_AXIS,QGraphicsItem* parent = 0);
Michal Klocek
Refactors axis layout managment...
r291 ~AxisAnimationItem();
void setLabelsAngle(int angle);
protected:
Michal Klocek
Axis refactoring to support better barcharts
r502 virtual void updateLayout(QVector<qreal>& layout);
Michal Klocek
Clean up axis animation code
r393 private:
AxisAnimator *m_animation;
Michal Klocek
Refactors axis layout managment...
r291 };
class AxisAnimator: public QVariantAnimation
{
public:
Michal Klocek
Bugfix missing parent intialization in axis animations
r303 AxisAnimator(AxisItem *axis,QObject *parent = 0);
Michal Klocek
Rewrite animation hadnling in line series...
r389 ~AxisAnimator();
Michal Klocek
Refactors axis layout managment...
r291 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_ */