Skip to content

[#850] Wire Qt visual whitepoint editor's embedded Measure button - #880

Merged
eoyilmaz merged 2 commits into
developfrom
850-qt-whitepoint-editor-measure-pattern-gen
Jul 18, 2026
Merged

[#850] Wire Qt visual whitepoint editor's embedded Measure button#880
eoyilmaz merged 2 commits into
developfrom
850-qt-whitepoint-editor-measure-pattern-gen

Conversation

@eoyilmaz

Copy link
Copy Markdown
Owner

Summary

  • Adds the embedded Measure button that wx's visual whitepoint editor has, missing from the Qt port (DisplayCAL/ui/tools/visual_whitepoint_editor.py). The button emits measure_requested.
  • MainWindow drives the actual measurement (DisplayCAL/ui/main_window.py): runs spotread in emissive mode (reusing _luminance_measure_producer), then feeds the result into the Calibration tab's whitepoint fields (colour temperature or x/y), plus a dimmed luminance target when the editor's own patch RGB isn't full white — mirroring wx's ambient_measure_consumer for the visual_whitepoint_editor_measure_btn branch.
  • Closes [Qt] Visual whitepoint editor: embedded Measure button and pattern-generator patch output missing #850's Measure-button half. The network pattern-generator patch-output half is split out into [Qt] Visual whitepoint editor: pattern-generator patch output missing #879 (tracked separately, larger scope).

Test plan

  • pytest tests/test_ui_main_window.py -k visual_whitepoint_editor_measure -v — 8 new tests, all passing
  • pytest tests/test_ui_main_window.py -n auto — full suite (513 tests), no regressions
  • Manual smoke test in the live Qt app (python -m DisplayCAL.ui.main_window) with a real instrument connected — maintainer confirmed the Measure button correctly reads the display and sets the whitepoint fields

eoyilmaz added 2 commits July 18, 2026 08:09
…mp version to 3.10.0.dev48

Adds the Measure button wx's editor has to the Qt port
(DisplayCAL/ui/tools/visual_whitepoint_editor.py), emitting
measure_requested. MainWindow drives the actual spotread measurement
(reusing _luminance_measure_producer, emissive mode) and feeds the
result into the calibration whitepoint fields (colour temperature or
x/y), plus a dimmed luminance target when the editor's own patch isn't
full white, mirroring wx's ambient_measure_consumer.

The network pattern-generator patch output half of #850 is split out
into #879, tracked separately given its larger scope.
…p test

CI (Linux + Python 3.10, pytest-xdist) failed
test_visual_whitepoint_editor_measure_consumer_sets_colortemp_whitepoint:
the implementation only proposes a colour-temp whitepoint when
whitepoint_ctrl isn't already on x,y chromaticity, and this test relied
on a fresh window's default state instead of pinning it, so a config
leak from an earlier test in the same worker (whitepoint_ctrl.setCurrentIndex(2),
never restored, matching this file's well-documented "config leaks
between tests" trap) could pre-set it to index 2 and skip the branch
under test. Pin the start state explicitly, matching every other
whitepoint_ctrl test in this file.
@eoyilmaz
eoyilmaz merged commit bae7e46 into develop Jul 18, 2026
26 of 30 checks passed
@eoyilmaz
eoyilmaz deleted the 850-qt-whitepoint-editor-measure-pattern-gen branch July 18, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Qt] Visual whitepoint editor: embedded Measure button and pattern-generator patch output missing

1 participant