-
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: Issue with scaling of dynamics #18860 #18920
Fix: Issue with scaling of dynamics #18860 #18920
Conversation
Interesting solution; especially a lot simpler than what I did in #15772. However, it might be preferable to specify the style conversion function in the call to |
Well in this case the style conversion function is just the same as the property conversion: it's just *100 or /100. In fact I wondered if there's a way to reuse the same conversion function that we're passing to builPropertyItem, but I couldn't come up with a sensible way |
b77d398
to
3766268
Compare
3766268
to
acbdfb6
Compare
There are some other properties that have similar issues with similar fixes:
Maybe it'd be nice to add those to this PR. |
acbdfb6
to
ea304e8
Compare
@cbjeukendrup all done! |
}, | ||
[this](const mu::engraving::Sid sid, const QVariant& newValue) { | ||
updateStyleValue(sid, QSizeF(newValue.toDouble() / 100, m_verticalScale->value().toDouble() / 100)); | ||
emit requestReloadPropertyItems(); | ||
}); | ||
|
||
m_verticalScale = buildPropertyItem(mu::engraving::Pid::SCALE, [this](const mu::engraving::Pid pid, const QVariant& newValue) { |
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 looks like the vertical component of the property needs this callback too
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.
also done 👍
ea304e8
to
4ff3646
Compare
4ff3646
to
3661584
Compare
3661584
to
e6457fb
Compare
Resolves: #18860