-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 #293464: Slash style for staff type change: Inspector label and function are not the same #5271
Conversation
@@ -114,7 +114,7 @@ | |||
<item row="11" column="0" colspan="2"> | |||
<widget class="QCheckBox" name="slashStyle"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want to rename the widget as well? Otherwise, the combination of names looks really weird :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, guess we could...
But maybe better not, slashStyle
is used in many many places in the source, apparently for hysterical raisins ;-) See also @MarcSabatella's remark about that in the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed the same setting used in Staff Properties, where the widgets themselves are called stemlessPitched and stemlessPercussion but the corresponding member of StaffType class is called slashStyle. For tab, it's set as a side effect of the radio button to control stems. I've never understood why this name existed, but guessed it either had something to do with tab or else it predated our support for ther forms of slash notation, and setting a staff to stemless was the first step in creating slash notation. Maybe even at one time this setting also forced the notes to slash heads. We'd probably have to go back to sourceforge or pick @wschweer or @lasconic memory to know.
Anyhow, I'm fine with a global replace of slashStyle to "stemless", except for compatibility we probably shouldn't change the tag written to the MSCX (or we should write both forms always and accept either on read).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd be a rather big change... for IMHO very little benefit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I said I'm fine with it, but I don't actually recommend it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have the changes for this ready shortly (but no idea what might break along the way), will make it a separate commit, for the decision takers to see ;-)
…unction are not the same
and all related things along with it, including a compatibility layer
eb6440f
to
a53bac4
Compare
@Jojo-Schmitz could you please describe possible consequences of renaming Pid properties in the commit log? The changes from this PR will look very weird in a year. We need to clearly describe the reason we do what (and why) we do in the commit log. I like the results of the renaming, btw. I wonder how developers understood the code around that variables before! |
For that 2nd commit? Something along the lines of "making names match their function"? |
I mean something like "new names might be incorrectly read and written to the file". Or "I left the read/write properties names the same to keep backward compatibility". |
There is a comment in the code |
No description provided.