##// END OF EJS Templates
more intelligent legend. fixed compiler warning in bar.cpp
more intelligent legend. fixed compiler warning in bar.cpp

File last commit:

r531:64f37cf5241e
r565:b4a66ce9ee2b
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_ */