##// END OF EJS Templates
domain applied to barcharts. x-axis domain doesn't make sense in this case
domain applied to barcharts. x-axis domain doesn't make sense in this case

File last commit:

r106:bc1381ca9ce2
r107:d78281b0a001
Show More
chartitem_p.h
23 lines | 689 B | text/x-c | CLexer
Tero Ahola
Refactoring continued: restored ChartItem class
r104 #ifndef CHARTITEM_H_
#define CHARTITEM_H_
#include "plotdomain_p.h"
#include "chartobjectinterface_p.h"
#include <QGraphicsItem>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
adopted theme interface to barcharts
r106 // TODO: setSize and set plotDomain back here. Derive this only from QGraphicsItem
// class ChartItem : public QGraphicsItem
Tero Ahola
Refactoring continued: restored ChartItem class
r104 class ChartItem : public QGraphicsItem, public ChartObjectInterface
{
enum ChartItemTypes{ AXIS_ITEM = UserType+1, XYLINE_ITEM};
public:
ChartItem(QGraphicsItem* parent = 0):QGraphicsItem(parent){};
virtual ~ChartItem(){};
// TODO: this is a hack; integration ongoing:
QGraphicsItem *graphicsItem() { return this; }
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTITEM_H_ */