Repository navigation
Fix the disabled list box style after a list selector closes - #805
Conversation
A child size hint can cache the selector's stylesheet while its parent is still unpolished. If the selector closes without being shown, another dialog can reuse its address and pick up the selector's list colors and sizing. Initialize the styled parent before creating the children so Qt clears its cached rules on destruction.
There was a problem hiding this comment.
If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.
Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.
|
Claude finished @suraj-ranganath's task in 43s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. The existing EEGLAB parity notesNone. Only Qt widget polishing changes. Button sizes, layout and Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. This PR changes GUI code only, so it does not need the MATLAB reference-suite run. |
The Tests workflow is red on develop at aa81d9a.
test_disabled_list_box_is_greyedfails on Ubuntu 3.12 and 3.13, macOS and Windows.Cause:
listdlg2measured its buttons' size hints before the dialog was polished, so Qt cached the selector's stylesheet rules. When the selector closed without being shown, a new dialog at the same address reused those rules and a disabled list box rendered white.Fix: Polish the selector right after its stylesheet is applied and before its children are measured. This removes the
unpolishworkaround in_apply_eeglab_style.Checks: The full workflow test command with
EEGPREP_SKIP_MATLAB=1passes on Linux with Python 3.12 and 3.13 (3,494 passed, 0 failed, 147 skipped). Pre-commit passes.This also unblocks #780, #781, #782, #783 and #784, which inherit the same failure from develop.