Skip to content
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

[MusicXML] Support for notehead names #737

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

Jojo-Schmitz
Copy link
Owner

Backport of musescore#25916

QRegExp nameparts("^note([A-Z][a-z]*)(Sharp|Flat)?");
const char* noteheadName = Sym::id2name(note->noteHead());
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
QStringList matches = QString::fromLatin1(noteheadName).split(nameparts, Qt::SkipEmptyParts);
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is not right. Need to find an equivalent for the original PR's

        StringList matches = String::fromAscii(noteheadName.ascii()).search(nameparts, { 1, 2 }, SplitBehavior::SkipEmptyParts);

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