(self)
| 53 | self.setZValue(Z_NET_LABEL) |
| 54 | |
| 55 | def shape(self) -> QPainterPath: |
| 56 | # Pad the clickable area beyond the tight glyph bounds so a short net |
| 57 | # name is an easy target (the default shape is hard to hit). |
| 58 | path = QPainterPath() |
| 59 | path.addRect(self.boundingRect().adjusted(-3, -2, 3, 2)) |
| 60 | return path |
| 61 | |
| 62 | def mousePressEvent(self, event): |
| 63 | w = self.parentItem() |
nothing calls this directly
no test coverage detected