! recalculates the outer bounds and the shape of the item. */
| 102 | recalculates the outer bounds and the shape of the item. |
| 103 | */ |
| 104 | void SegmentPrivate::recalcShapeAndBoundingRect() { |
| 105 | prepareGeometryChange(); |
| 106 | boundingRectangle = linePath.boundingRect(); |
| 107 | itemShape = QPainterPath(); |
| 108 | itemShape.addRect(boundingRectangle); |
| 109 | } |
| 110 | |
| 111 | void SegmentPrivate::paint(QPainter* painter, const QStyleOptionGraphicsItem* /*option*/, QWidget*) { |
| 112 | painter->setPen(pen); |
nothing calls this directly
no test coverage detected