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

Fix color widgets incorrectly change colors when mouse is hovered over widget #47069

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

nyalldawson
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added this to the 3.24.0 milestone Jan 30, 2022
@nyalldawson
Copy link
Collaborator Author

Cause for this issue -- the code was wrong, but the issue wasn't visible as the widgets would only start "tracking" the mouse after the widget was clicked and grabbed the mouse cursor. Changes elsewhere (in QgsScrollArea) mean that the scroll area children are always mouse tracking, so we need to fix the broken code and only allow the widget to change in between mouse left press/release pairs.

@timlinux
Copy link
Member

wow thanks @nyalldawson !

@timlinux
Copy link
Member

By the just to confirm, I tested with your branch and the fix works nicely, thanks!

@nyalldawson
Copy link
Collaborator Author

Thanks for the confirmation @timlinux !

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.

3 participants