Skip to content
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

Popup window colorspace fix #5925

Merged

Conversation

johnhaddon
Copy link
Member

This fixes a bug whereby the ephemeral PlugPopup windows we use to display temporary editors were not inheriting the correct display transform from the main UI.

@johnhaddon johnhaddon self-assigned this Jun 27, 2024
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This will just need to be updated to target 1.4_maintenance before merging.

@johnhaddon johnhaddon changed the base branch from main to 1.4_maintenance June 28, 2024 07:59
This allows the PopupWindow to inherit the display transform from the main UI, and allows `ancestor()` to be used to find things like the main ScriptWindow.

I used `Menu.popup()` as the model for this since it is the closest related API we have. One potential downside is that the parenting isn't performed in Qt, meaning among other things that it won't be visited by `Widget.__propagateDisplayTransformChange`. I think this is probably good enough for now though, as popup windows are ephemeral and the display transform shouldn't change while they are open.
@johnhaddon
Copy link
Member Author

Rebased and retargeted to 1.4_maintenance.

@murraystevenson murraystevenson merged commit f021e75 into GafferHQ:1.4_maintenance Jun 28, 2024
5 checks passed
@johnhaddon johnhaddon deleted the popupWindowColorspace branch August 7, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants