MCPcopy Create free account
hub / github.com/KDE/labplot / recalcShapeAndBoundingRect

Method recalcShapeAndBoundingRect

src/backend/datapicker/Segment.cpp:104–109  ·  view source on GitHub ↗

! recalculates the outer bounds and the shape of the item. */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

boundingRectMethod · 0.45

Tested by

no test coverage detected