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

[qt5] Avoid infinite repaints upon hovering the folders/tags panels #720

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

guihkx
Copy link
Collaborator

@guihkx guihkx commented Oct 25, 2024

Same commit of PR #719, cherry picked for the qt5 branch.

We were calling setStyleSheet() unconditionally inside the paint event
handlers of the folders/tags panels, which would then trigger a new
paint event, causing an infinite repaint recursion.

Now, we only call setStylesheet() if the stylesheet of a widget actually
needs to be updated.

(cherry picked from commit 9cb2616)
@guihkx guihkx merged commit ec83d0b into nuttyartist:qt5 Oct 25, 2024
7 checks passed
@guihkx guihkx deleted the qt5-fix-infinite-repaints branch October 25, 2024 17:43
@nuttyartist
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants