(self)
| 250 | painter.restore() |
| 251 | |
| 252 | def _rebuild(self): |
| 253 | if len(self.points) < 2: |
| 254 | self.setPath(QPainterPath()) |
| 255 | else: |
| 256 | path = QPainterPath(self.points[0]) |
| 257 | for pt in self.points[1:]: |
| 258 | path.lineTo(pt) |
| 259 | self.setPath(path) |
| 260 | self._place_label() |
no test coverage detected