MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / boundingRect

Method boundingRect

SLiCAP/schematic/parameter_item.py:72–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

70 # ── geometry ──────────────────────────────────────────────────────────────
71
72 def boundingRect(self) -> QRectF:
73 if self._renderer is not None:
74 return QRectF(0, 0, self.display_width, self.display_height)
75 return self._natural_text_rect()
76
77 def shape(self) -> QPainterPath:
78 path = QPainterPath()

Callers 2

shapeMethod · 0.95
paintMethod · 0.95

Calls 1

_natural_text_rectMethod · 0.95

Tested by

no test coverage detected