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) WCoverArt: popup on click release #13182

Merged
merged 1 commit into from Apr 30, 2024

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Apr 28, 2024

Fixes #13181
Forgot to backport #13035

Though, I'm confused why this can break so easily.

FWIW, this is what various button tests return for trackpad click release with Qt 5.12.8:
FALSE pEvent->buttons() & Qt::LeftButton
FALSE pEvent->buttons() == Qt::LeftButton
FALSE pEvent->buttons().testFlag(Qt::LeftButton)
TRUE pEvent->button() == Qt::LeftButton (fix)

  • various widgets' mousePressEvent() succesfully use
    pEvent->buttons() == Qt::LeftButton
  • in release events however we use
    pEvent->button()

@github-actions github-actions bot added the ui label Apr 28, 2024
@ronso0 ronso0 linked an issue Apr 28, 2024 that may be closed by this pull request
@ronso0
Copy link
Member Author

ronso0 commented Apr 28, 2024

FWIW I discovered this by chance when trying to view a cover in a live session.
We should set up a smoke test check list. Or,if such an official list exists, add some cover test cases.

@ronso0 ronso0 changed the title WCoverArt: fix popup on click release (fix) WCoverArt: popup on click release Apr 29, 2024
@ronso0 ronso0 added the blocker label Apr 29, 2024
@ronso0 ronso0 added this to the 2.4.1 milestone Apr 29, 2024
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

I can confirm the issue is fixed. Thank you.

@daschuer daschuer merged commit 906a059 into mixxxdj:2.4 Apr 30, 2024
14 checks passed
@ronso0 ronso0 deleted the coverart-click-fix branch May 1, 2024 02:02
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.

Cover art widget doesn't open popup on click
2 participants