Skip to content

[#843] Port "Change patch order" sort/reorder feature to the Qt testchart editor - #868

Merged
eoyilmaz merged 1 commit into
developfrom
843-qt-testchart-editor-patch-order
Jul 16, 2026
Merged

[#843] Port "Change patch order" sort/reorder feature to the Qt testchart editor#868
eoyilmaz merged 1 commit into
developfrom
843-qt-testchart-editor-patch-order

Conversation

@eoyilmaz

Copy link
Copy Markdown
Owner

Summary

  • Ports wx_testchart_editor.tc_sort_handler's 23 sort/reorder modes (gray/white/primary-to-top, HSI/HSL/HSV/L/Rec.709-luma/RGB/BGR sorts, "minimize display response delay", and the interleave/checkerboard patterns) to the Qt testchart editor, which the module's own docstring explicitly flagged as deferred.
  • Reuses the existing DisplayCAL.cgats.CGATS sort/checkerboard methods, so no new sorting logic was needed, only the missing UI wiring.
  • Adds a change-patch-order combo box + Apply button to the same row as the "add reference patches" controls (matching wx's layout), gated on a loaded chart via the new _update_sort_controls().
  • Bumps DisplayCAL/VERSION to 3.10.0.dev44.

Closes #843.

Test plan

  • tests/test_ui_testchart_editor_patch_order.py (31 new tests): dispatch for every one of the 23 modes, enable/disable gating, grid refresh, modified flag.
  • tests/test_ui_testchart_editor.py + tests/test_CGATS.py still pass (no regressions).
  • Manually verified end-to-end in an offscreen Qt run: loaded a 4-patch chart, clicked Apply with "white to top" selected, confirmed the white patch and its "W" swatch label moved to row 0.

…hart editor

Ports wx_testchart_editor.tc_sort_handler's 23 sort/reorder modes (gray/white/
primary-to-top, HSI/HSL/HSV/L/Rec.709-luma/RGB/BGR sorts, "minimize display
response delay", and the interleave/checkerboard patterns), which the Qt
port's own docstring explicitly flagged as deferred. Reuses the existing
DisplayCAL.cgats.CGATS sort/checkerboard methods, so no new sorting logic
was needed, only the missing UI wiring.

Adds a change-patch-order combo box + Apply button to the same row as the
"add reference patches" controls (matching wx's layout), gated on a loaded
chart via the new `_update_sort_controls()`, and `tc_sort_handler()` which
dispatches to the selected mode and refreshes the grid.
@eoyilmaz
eoyilmaz merged commit 6c16ce1 into develop Jul 16, 2026
20 of 22 checks passed
@eoyilmaz
eoyilmaz deleted the 843-qt-testchart-editor-patch-order branch July 16, 2026 23:45
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] Testchart editor: "Change patch order" sort/reorder feature not ported

1 participant