Skip to content
Snippets Groups Projects
Commit c200d424 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Score: fixed JS

parent 3cfd79df
No related branches found
No related tags found
No related merge requests found
......@@ -43,26 +43,26 @@ Flickable {
property var cursor: null
property var scoreToobox: null
function ensureVisible(yy, hh) {
function ensureVisible(yy: real, hh: real) : void {
if (contentY >= yy)
contentY = yy;
else if (contentY + height <= yy + hh)
contentY = yy + hh - height;
}
function addNote(n) {
function addNote(n: tnote) : void {
scoreObj.addNote(n, true);
}
function setNote(noteItem, note) {
function setNote(noteItem: TnoteItem, note: tnote) : void {
scoreObj.setNote(noteItem, note);
}
function clearScore() {
function clearScore() : void {
scoreObj.clearScore();
}
function deleteLast() {
function deleteLast() : void {
scoreObj.deleteLastNote();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment