4 #include <QGraphicsObject>
8 class GraphItem
: public QGraphicsObject
13 GraphItem(const Graph
&graph
, QGraphicsItem
*parent
= 0);
15 QRectF
boundingRect() const
16 {return _path
.boundingRect();}
17 void paint(QPainter
*painter
, const QStyleOptionGraphicsItem
*option
,
20 const QRectF
&bounds() const {return _bounds
;}
21 void setScale(qreal sx
, qreal sy
);
23 void setGraphType(GraphType type
);
24 int id() const {return _id
;}
25 void setId(int id
) {_id
= id
;}
26 void setColor(const QColor
&color
);
27 void setWidth(int width
);
30 qreal
distanceAtTime(qreal time
);
33 void sliderPositionChanged(qreal
);
36 void emitSliderPositionChanged(qreal
);
37 void selected(bool selected
);