(self)
| 75 | return self._natural_text_rect() |
| 76 | |
| 77 | def shape(self) -> QPainterPath: |
| 78 | path = QPainterPath() |
| 79 | path.addRect(self.boundingRect()) |
| 80 | return path |
| 81 | |
| 82 | def _natural_text_rect(self) -> QRectF: |
| 83 | """Bounding rect sized to the text content (used when there is no renderer).""" |
nothing calls this directly
no test coverage detected