4 #include <QGraphicsItem>
8 #include "common/range.h"
10 class AxisItem
: public QGraphicsItem
15 AxisItem(Type type
, QGraphicsItem
*parent
= 0);
17 /* Note: The items position is at the 0 point of the axis line, not at the
18 top-left point of the bounding rect as usual */
19 QRectF
boundingRect() const {return _boundingRect
;}
20 void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
,
23 void setRange(const RangeF
&range
);
24 void setSize(qreal size
);
25 void setZoom(qreal zoom
) {_zoom
= zoom
;}
27 QSizeF
margin() const;
28 QList
<qreal
> ticks() const;
36 void updateBoundingRect();