##// END OF EJS Templates
Title and name of QSeries replaced with name
Title and name of QSeries replaced with name

File last commit:

r668:ea2480445e4a
r731:90a16700f8b3
Show More
piesliceanimation_p.h
33 lines | 807 B | text/x-c | CLexer
/ src / animations / piesliceanimation_p.h
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 #ifndef PIESLICEANIMATION_P_H_
#define PIESLICEANIMATION_P_H_
#include "piechartitem_p.h"
#include <QVariantAnimation>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class PieChartItem;
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629 class QPieSlice;
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618
class PieSliceAnimation : public QVariantAnimation
{
public:
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629 PieSliceAnimation(PieChartItem *item, QPieSlice *slice);
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 ~PieSliceAnimation();
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 void setValue(const PieSliceData &startValue, const PieSliceData &endValue);
void updateValue(const PieSliceData &endValue);
PieSliceData currentSliceValue();
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618
protected:
QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress) const;
void updateCurrentValue(const QVariant &value);
private:
PieChartItem *m_item;
Jani Honkonen
Getting rid of slice pointer in PieSliceLayout.
r629 QPieSlice *m_slice;
Jani Honkonen
Rename PieSliceLayout -> PieSliceData. A "layout" is a bad name for this.
r668 PieSliceData m_currentValue;
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif