(scene)
| 65 | |
| 66 | |
| 67 | def export_bounds(scene) -> QRectF: |
| 68 | from .border_item import BorderItem |
| 69 | for item in scene.items(): |
| 70 | if isinstance(item, BorderItem): |
| 71 | pos = item.pos() |
| 72 | r = item.rect() |
| 73 | return QRectF(pos.x(), pos.y(), r.width(), r.height()) |
| 74 | b = scene.itemsBoundingRect() |
| 75 | if b.isEmpty(): |
| 76 | b = QRectF(0, 0, 200, 200) |
| 77 | return b.adjusted(-_MARGIN, -_MARGIN, _MARGIN, _MARGIN) |
| 78 | |
| 79 | |
| 80 | def _qhex(c) -> str: |
no outgoing calls
no test coverage detected