aboutsummaryrefslogtreecommitdiffstats
path: root/docs/superpowers/plans/2026-10-30-upscale-qt.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-30 19:03:12 +0100
committerDanilo M. <danix@danix.xyz>2026-10-30 19:03:12 +0100
commitfd5eb858f89c7a39506abb2aeea8756fd1228763 (patch)
tree7cef158fb54ded3183ba3eab775f43c8286bc104 /docs/superpowers/plans/2026-10-30-upscale-qt.md
parent71e6979efcb6ac9593a4618d964504a7f44d490f (diff)
downloadupscale-qt-fd5eb858f89c7a39506abb2aeea8756fd1228763.tar.gz
upscale-qt-fd5eb858f89c7a39506abb2aeea8756fd1228763.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'docs/superpowers/plans/2026-10-30-upscale-qt.md')
-rw-r--r--docs/superpowers/plans/2026-10-30-upscale-qt.md6
1 files changed, 3 insertions, 3 deletions
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**