##// END OF EJS Templates
Separated legend marker to private header. Added signals for left and right mouse click
Separated legend marker to private header. Added signals for left and right mouse click

File last commit:

r531:64f37cf5241e
r547:2c194d26bbea
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_ */