Skip to content

Stave labelling improvements#32457

Merged
miiizen merged 4 commits intomusescore:masterfrom
mike-spa:staveLabellingImprovements
Mar 6, 2026
Merged

Stave labelling improvements#32457
miiizen merged 4 commits intomusescore:masterfrom
mike-spa:staveLabellingImprovements

Conversation

@mike-spa
Copy link
Copy Markdown
Contributor

@mike-spa mike-spa commented Mar 3, 2026

No description provided.

@mike-spa mike-spa force-pushed the staveLabellingImprovements branch from 4f8cd7a to 72f24db Compare March 4, 2026 15:26
@mike-spa mike-spa force-pushed the staveLabellingImprovements branch from fd8be7d to 0d16912 Compare March 5, 2026 13:47
@mike-spa mike-spa requested a review from miiizen March 5, 2026 13:49
Comment thread src/engraving/dom/instrumentname.h Outdated
@@ -52,6 +55,9 @@ class InstrumentName final : public TextBase
void setInstrumentNameType(InstrumentNameType v);
void setInstrumentNameType(const String& s);
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.

This looks like it's unused along with instrumentNameTypeName

switch (el->type()) {
case ElementType::INSTRUMENT_NAME:
m_staves[el->staffIdx()]->instrumentName = nullptr;
// TODO: I'm pretty sure that this gets leadked. Needs fixing.
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.

Yes - along with all other generated items!

void EditStaffType::setFromDlg()
{
staffType.setName(name->text());
staffType.setStaffTypeName(name->text());
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.

name is read only, so I think we can get rid of StaffTypeName::setStaffTypeName

m_group = sg;
m_xmlName = xml;
m_name = name;
m_staffTypeName = name;
Copy link
Copy Markdown
Contributor

@miiizen miiizen Mar 5, 2026

Choose a reason for hiding this comment

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

Further to my comment about making this readonly above, we should get rid of m_staffTypeName and m_xmlName, and implement TConv methods for the StaffTypes enum.
Bit of a distraction sorry, but always looking for ways to clean up this file!

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.

Agree 100% but let's do it separately

Comment thread src/engraving/editing/editstaff.cpp Outdated
void ChangeStaffType::flip(EditData*)
{
StaffType oldStaffType = *staff->staffType(Fraction(0, 1)); // TODO
StaffType oldStaffType = *staff->staffType(tick); // TODO
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.

This is probably what the todo is referring to? Even if not, I don't know what it means so let's get rid

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.

Definitely

@miiizen miiizen merged commit b007e59 into musescore:master Mar 6, 2026
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.

2 participants