##// END OF EJS Templates
Started to refactor the API to allow integrating different plot types
Started to refactor the API to allow integrating different plot types

File last commit:

r19:b231f8e5fa43
r19:b231f8e5fa43
Show More
axis_p.h
29 lines | 562 B | text/x-c | CLexer
Michal Klocek
adds missing files form previous commit
r12 #ifndef AXIS_H_
#define AXIS_H_
#include <qchartconfig.h>
#include <QGraphicsItem>
QCHART_BEGIN_NAMESPACE
class Axis: public QGraphicsItem
{
public:
Axis(QGraphicsItem* parent = 0);
virtual ~Axis();
//from QGraphicsItem
virtual QPainterPath shape() const;
virtual QRectF boundingRect() const;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void setLength(int length);
void setWidth(int width);
private:
QPainterPath m_path;
};
QCHART_END_NAMESPACE
#endif /* AXIS_H_ */