##// END OF EJS Templates
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series
Added support for data from model to QBarSeries. Various fixes and small modifications to data from model support to other series

File last commit:

r629:54034d98d5c4
r630:dd8db9a3a988
Show More
piesliceanimation_p.h
32 lines | 782 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
Getting rid of slice pointer in PieSliceLayout.
r629 void setValue(const PieSliceLayout &startValue, const PieSliceLayout &endValue);
void updateValue(const PieSliceLayout &endValue);
Jani Honkonen
Add animations to pie. Works but has some visual issues when adding slices.
r618 PieSliceLayout currentSliceValue();
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
Add animations to pie. Works but has some visual issues when adding slices.
r618 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif