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

Port to MuseScore 4 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Port to MuseScore 4
while maintaining MuseScore 3 compatibility
  • Loading branch information
Jojo-Schmitz committed May 28, 2023
commit 4abe6ada31e054b4434110b015b557c00ec17968
16 changes: 14 additions & 2 deletions comments.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,25 @@ MuseScore {
//pluginType : "Dialog"
//requiresScore: true // needs MuseScore > 2.0.3

Component.onCompleted : {
if (mscoreMajorVersion >= 4) {
title = qsTr("Comments") ;
// thumbnailName = ".png";
// categoryCode = "some_category";
}
}

onRun : {

curScore.startCmd()

if (!curScore) {
Qt.quit();
quit();
} else {
window.visible = true
}

curScore.endCmd()
}

Window {
Expand Down Expand Up @@ -115,7 +127,7 @@ MuseScore {
curScore.setMetaTag("comments", abcText.text)
settings.metrics = JSON.stringify(metrics);
}
Qt.quit()
quit()
}
//Added onActiveChanged so we can test if the score has been changed.
onActiveChanged : {
Expand Down