-
Notifications
You must be signed in to change notification settings - Fork 7
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
Resizable tof spectrum viewer #2026
Conversation
@@ -41,6 +41,8 @@ class SpectrumViewerWindowView(BaseMainWindowView): | |||
bin_size_spinBox: QSpinBox | |||
bin_step_spinBox: QSpinBox | |||
|
|||
spectrumWidget: SpectrumWidget |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the local name be in snake_case
spectrum_widget: SpectrumWidget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
Looks good. Just needs a release note |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well. Thanks
Issue
Closes #2025.
Description
In the
SpectrumWidget
for the Spectrum Viewer, the image view and the spectrum plot have been separated into two separate widgets as this allows us to use a QSplitter to resize them in a comfortable way. The splitter is configured so that initially the image takes up 70% of the window and the spectrum plot takes 30%, but this can be easily configured. TheSpectrumWidget
class now creates instances of theSpectrumPlotWidget
andSpectrumProjectionWidget
. This refactoring required the unit tests to be modified.Testing
Check
make check
still passes properly.Acceptance Criteria
Open some data in the Spectrum Viewer and see if the ToF plot can be easily resized and viewed. Make sure that the rest of the Spectrum Viewer still works as intended.
Documentation
Will be added to release notes.