-
Notifications
You must be signed in to change notification settings - Fork 3k
More fret diagram improvements #29774
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
More fret diagram improvements #29774
Conversation
07498b9
to
c24167a
Compare
void FretLinkHarmony::undo(EditData*) | ||
{ | ||
if (m_unlink) { | ||
m_fretDiagram->linkHarmony(m_harmony); |
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.
This function sets the harmony's z value and applies some alignment changes. I think we still need to do these things when adding and removing harmony from fret diagrams.
if (m_unlink) { | ||
m_fretDiagram->linkHarmony(m_harmony); | ||
} else { | ||
m_fretDiagram->unlinkHarmony(); |
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.
Likewise here
public: | ||
FretLinkHarmony(FretDiagram*, Harmony*, bool unlink = false); | ||
|
||
UNDO_TYPE(CommandType::FretLinkHarmony) |
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.
This enum value can be removed now
f395c0c
to
aa95bd4
Compare
…plify code We can use Score::undoChangeParent instead of FretLinkHarmony
Simplify z-level management Remove unused unlinkHarmony Remove unused resetHarmonyAlignment Remove unused linkHarmony Remove unused applyAlignmentToHarmony Remove unused CommandType::FretLinkHarmony
aa95bd4
to
c37a121
Compare
…vements More fret diagram improvements
Resolves: #29716
Resolves: #29009