##// END OF EJS Templates
disable legend by default
disable legend by default

File last commit:

r531:64f37cf5241e
r596:9551377d12c7
Show More
chartitem_p.h
33 lines | 706 B | text/x-c | CLexer
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #ifndef CHARTITEM_H_
#define CHARTITEM_H_
Michal Klocek
Refactors qchart , adds line animation...
r131 #include "domain_p.h"
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
One more alternative for changing themes
r108
Michal Klocek
Animation refactor...
r530 class ChartAnimator;
Michal Klocek
Refactors qchart , adds line animation...
r131
Tero Ahola
One more alternative for changing themes
r108 class ChartItem : public QGraphicsItem
Tero Ahola
Refactoring continued: restored ChartItem class
r104 {
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM};
public:
Michal Klocek
Animation refactor...
r530 ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent),
m_animator(0){};
Michal Klocek
Refactors axis handling...
r223 //TODO make pure
virtual void handleGeometryChanged(const QRectF&){};
Michal Klocek
Adds scroll support...
r531 virtual void handleDomainChanged(qreal,qreal,qreal,qreal){};
Michal Klocek
Animation refactor...
r530
void setAnimator(ChartAnimator* animator){
m_animator=animator;
}
Tero Ahola
Refactoring continued: restored ChartItem class
r104 virtual ~ChartItem(){};
Michal Klocek
Animation refactor...
r530
protected:
ChartAnimator* m_animator;
Tero Ahola
Refactoring continued: restored ChartItem class
r104 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTITEM_H_ */