Skip to content

Set text property flags when begin hook is changed#32777

Open
miiizen wants to merge 1 commit intomusescore:4.7from
miiizen:32750-pedalTextFlag
Open

Set text property flags when begin hook is changed#32777
miiizen wants to merge 1 commit intomusescore:4.7from
miiizen:32750-pedalTextFlag

Conversation

@miiizen
Copy link
Copy Markdown
Contributor

@miiizen miiizen commented Mar 25, 2026

Resolves: #32750

This fixes the issue for new palette items and scores. Unfortunately, I can't see a way to deal with opening existing scores/palette items as these is missing information.

@davidstephengrant
Copy link
Copy Markdown
Contributor

Tested and approved on Ubuntu 24.04.4 LTS.

setPropertyFlags(Pid::END_TEXT, endTextStyleFlag);
triggerLayout();
return true;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks ok but could you explain why Pedal is different from all other TextLineBase elements in this regard?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See Pedal::getPropertyStyle. The style value (and so the default) associated with begin & continue text depends on the begin hook type and the end text default depends on the line being visible. When the property they depend on changes, we need to set the style flags based on the new default.

The default value of text depends on the value of begin hook
@miiizen miiizen force-pushed the 32750-pedalTextFlag branch from 32231b7 to 1bf1bec Compare March 30, 2026 08:01
@miiizen miiizen linked an issue Mar 30, 2026 that may be closed by this pull request
4 tasks
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.

Keyboard palette items do not save correctly

3 participants