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

(cleanup) remove obsolete focusOutEvent() from WPushButton #14177

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Jan 16, 2025

Focus is disabled in setup() anyway and there is no WPushButton-derived WWidget that sets a different focus policy, so this is never called.
'pressed' and 'hovered' states are reset in event(), eg. when switching to another window.
(I traced the events to verify)

So this is basically a fixup/cleanup for #2307 / #2460

focus is disabled for WWidget and enabled only for special widgets like spinboxes
@github-actions github-actions bot added the ui label Jan 16, 2025
Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

not 100% familiar with all the implicit assumptions around Qt here. I'd be more comfortable merging this if it was targetted at main...

@ronso0 ronso0 changed the base branch from 2.5 to main January 17, 2025 15:43
@ronso0
Copy link
Member Author

ronso0 commented Jan 17, 2025

Sure, I don't mind.
I updated the description, the snippet I linked was the wrong one.

@Swiftb0y Swiftb0y merged commit 7e3aa94 into mixxxdj:main Jan 17, 2025
13 checks passed
@Swiftb0y
Copy link
Member

Thank you.

@ronso0 ronso0 deleted the pushbutton-remove-focusout branch January 17, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants