Scale transform that represents the current flip state.
(self)
| 535 | # ── flip / rotation ─────────────────────────────────────────────────────── |
| 536 | |
| 537 | def _flip_transform(self) -> QTransform: |
| 538 | """Scale transform that represents the current flip state.""" |
| 539 | return QTransform().scale( |
| 540 | -1.0 if self.h_flip else 1.0, |
| 541 | -1.0 if self.v_flip else 1.0, |
| 542 | ) |
| 543 | |
| 544 | def apply_transform(self) -> None: |
| 545 | """Apply h_flip / v_flip to the item and counter-transform all labels.""" |