-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix localization and inconsistent state in ctkModalityWidget #1080
Conversation
Since I plan on finalizing #1005, let's fix the I target to wrap this up by end of next week, then we will tag CTK and move forward with removing Qt4 support and adding support for Qt6. |
Should this file be updated ? See https://github.com/commontk/CTK/blob/master/Libs/Widgets/Testing/Cpp/ctkModalityWidgetEventTranslatorPlayerTest1.xml |
Once we are done with Qt4 removal, we should evaluate if the overall of maintaining QtTesting player/translator for both CTK & Slicer is worth it. |
Not using QSignalBlocker leads to lower-quality code and extra development effort, so this is a little bit annoying, but OK, let's do this one last time.
We are looking into refreshing/improving QtTesting for recording tutorials that can be replayed in different languages (because we cannot use English language screenshots in non-English tutorials). We would like to generate executable Python code instead of XML. Maybe we'll use the recorder (just fix and extend it as needed) and convert the XML to Python; or maybe we'll change it more significantly to create Python code directly.
The test still passes. |
So that the cleaned up code uses
|
There were several issues with the imaging modality selector widget (ctkModalityWidget): - when imaging modality abbreviations (CT, MRI, XA, ...) were localized then the widget did not work at all, because the checkbox text was used to identify the checkboxes - widget state was stored redundantly in SelectedModalities and VisibleModalities variables and the checkbox properties; and these were often inconsistent Fixed by using Qt object names to identify checkboxes; and removing SelectedModalities and VisibleModalities variables (store widget state in the checkbox properties).
6d4eb07
to
d4977ad
Compare
There were several issues with the imaging modality selector widget (ctkModalityWidget):
Fixed by using Qt object names to identify checkboxes; and removing SelectedModalities and VisibleModalities variables (store widget state in the checkbox properties).