From fd5eb858f89c7a39506abb2aeea8756fd1228763 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 30 Oct 2026 19:03:12 +0100 Subject: Add slider-wipe compare view Before and after share one transform; before is drawn into after's rectangle so it is never copied at 4x size. Drag the divider to wipe, drag elsewhere to pan, wheel zooms around the cursor, double-click fits. Co-Authored-By: Claude Opus 5.5 --- docs/superpowers/plans/2026-10-30-upscale-qt.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/superpowers/plans/2026-10-30-upscale-qt.md b/docs/superpowers/plans/2026-10-30-upscale-qt.md index 9af7600..8254308 100644 --- a/docs/superpowers/plans/2026-10-30-upscale-qt.md +++ b/docs/superpowers/plans/2026-10-30-upscale-qt.md @@ -241,12 +241,12 @@ def test_compare_view(): after = QImage(40, 40, QImage.Format.Format_RGB32) after.fill(QColor('blue')) v = uq.CompareView() - v.resize(200, 200) + v.resize(400, 400) # at or above the minimum size v.set_images(before, after) shot = v.grab().toImage() # left of the divider shows before, right shows after - assert shot.pixelColor(50, 100) == QColor('red') - assert shot.pixelColor(150, 100) == QColor('blue') + assert shot.pixelColor(100, 200) == QColor('red') + assert shot.pixelColor(300, 200) == QColor('blue') ``` - [ ] **Step 2: Run, expect failure** -- cgit v1.2.3