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 #281957 move highlight update to work for cursor changes and on click of elements that aren't notes #4766

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

peterhieuvu
Copy link
Contributor

I originally had a bit of a flawed implementation where the palette didn't update when clicking onto a different non-chordrest element and also didn't update when changing the selection using the arrow keys. This modification fixes that by moving the updatePaletteBeamMode() function to Musescore::endCmd() instead. I considered using selectionChanged() instead, but there were a few problems with that. When the user applies a new palette element (changing the beam mode by dragging or double clicking on a cell), the selection doesn't change, but the beam mode does change. For that reason I removed the call from mousePressEventNormal() to endCmd(). Let me know if you see a way this could be further improved!

@anatoly-os
Copy link
Contributor

Tests are failed which is probably correct. You need to fix the code, not tests. But it is better to check the tests as well.

PS. See #4726 as a beginning of the changes.

@peterhieuvu
Copy link
Contributor Author

Oh oops I'm sorry. I made an adjustment which I think should fix the issue. Thank you!

@anatoly-os anatoly-os merged commit 3472631 into musescore:master Mar 7, 2019
anatoly-os added a commit that referenced this pull request Mar 8, 2019
fix #281957 move highlight update to work for cursor changes and on click of elements that aren't notes
@peterhieuvu peterhieuvu deleted the 281957-beamproperties branch March 16, 2019 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants