##// END OF EJS Templates
Added support for adding and removing data with model. Updated the example
Added support for adding and removing data with model. Updated the example

File last commit:

r531:64f37cf5241e
r545:366c5163e81a
Show More
chartitem_p.h
33 lines | 706 B | text/x-c | CLexer
#ifndef CHARTITEM_H_
#define CHARTITEM_H_
#include "domain_p.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartAnimator;
class ChartItem : public QGraphicsItem
{
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM};
public:
ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent),
m_animator(0){};
//TODO make pure
virtual void handleGeometryChanged(const QRectF&){};
virtual void handleDomainChanged(qreal,qreal,qreal,qreal){};
void setAnimator(ChartAnimator* animator){
m_animator=animator;
}
virtual ~ChartItem(){};
protected:
ChartAnimator* m_animator;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTITEM_H_ */