Skip to content

[#845] Reproduce the BPC choice dialog on Qt measurement-mode switch - #871

Merged
eoyilmaz merged 1 commit into
developfrom
845-qt-bpc-choice-dialog-measurement-mode
Jul 17, 2026
Merged

[#845] Reproduce the BPC choice dialog on Qt measurement-mode switch#871
eoyilmaz merged 1 commit into
developfrom
845-qt-bpc-choice-dialog-measurement-mode

Conversation

@eoyilmaz

Copy link
Copy Markdown
Owner

Summary

  • Qt's measurement_mode_ctrl_handler() silently dropped wx's confirm-and-toggle black-point-correction prompt (shown when a measurement-mode switch implies BPC should also toggle), including its "don't ask again" persistence.
  • Adds _confirm_black_point_correction_choice(), a QMessageBox port of wx's ConfirmDialog with turn-on/turn-off vs. keep-current buttons and a do-not-show-again checkbox wired to calibration.black_point_correction_choice.show.

Fixes #845

Test plan

  • pytest tests/test_ui_main_window.py -q (501 passed)
  • Broader Qt/UI sweep pytest tests/ -k "qt or ui" -q -n auto (955 passed, 2 skipped)
  • New tests cover: dialog shown/skipped per guard conditions, turn-on/turn-off accept persists BPC, keep-current leaves BPC unchanged, checkbox persists regardless of button, and the settings-changed marking behavior

Qt's measurement_mode_ctrl_handler() dropped the confirm-and-toggle
black-point-correction prompt that wx's version shows when switching
measurement modes implies BPC should also change, silently discarding
the user's choice and its "don't ask again" persistence.

Add _confirm_black_point_correction_choice() to reproduce it: a
QMessageBox with turn-on/turn-off vs. keep-current buttons and a
do-not-show-again checkbox, wired the same way wx's ConfirmDialog was.
@eoyilmaz
eoyilmaz merged commit e3c604c into develop Jul 17, 2026
20 of 22 checks passed
@eoyilmaz
eoyilmaz deleted the 845-qt-bpc-choice-dialog-measurement-mode branch July 17, 2026 13:50
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] Black-point-compensation choice dialog missing on measurement-mode switch

1 participant