diff --git a/src/qml/ScoreMenuContent.qml b/src/qml/ScoreMenuContent.qml
index 5550849a9f373748161b4c7d6413bb2e6597655d..68ab28e4291887d5cba52b2f03b94a065e026c50 100644
--- a/src/qml/ScoreMenuContent.qml
+++ b/src/qml/ScoreMenuContent.qml
@@ -43,7 +43,7 @@ Tmenu {
Connections {
target: score.notesMenuAct
- onTriggered: {
+ function onTriggered() : void {
notesLoader.active = true;
notesLoader.item.open();
close();
@@ -123,8 +123,8 @@ Tmenu {
Connections {
target: score.transposeAct
- onTriggered: {
- var tPop = transComp.createObject(nootkaWindow);
+ function onTriggered() : void {
+ let tPop = transComp.createObject(nootkaWindow);
tPop.initKey = score.keySignature;
close();
}
diff --git a/src/qml/instruments/Ukulele.qml b/src/qml/instruments/Ukulele.qml
index 480d6ffa828a0b83f31e68d9c410fbc8a83adc86..7ccdec66128e8538e0b7f81b90a155306340eff5 100644
--- a/src/qml/instruments/Ukulele.qml
+++ b/src/qml/instruments/Ukulele.qml
@@ -142,7 +142,7 @@ TguitarBg {
Connections {
target: instrFlick
enabled: !NOO.isAndroid()
- onMovementEnded: instrument.pressedAt(0, 0)
+ function onMovementEnded() : void { instrument.pressedAt(0, 0) }
}
MouseArea {
diff --git a/src/qml/level/MelodyPage.qml b/src/qml/level/MelodyPage.qml
index 3de5dc92d4458c33caa6f8b2562fe0668bb53ede..2ecb11f9cab5a55cf98210184c1d93faa3daff1a 100644
--- a/src/qml/level/MelodyPage.qml
+++ b/src/qml/level/MelodyPage.qml
@@ -256,24 +256,20 @@ Tflickable {
bold: true
pixelSize: NOO.factor() * 0.9
}
-
}
-
}
-
}
-
}
Connections {
target: creator
- onUpdateNotesList: updateNotesList()
- onUpdateMelodyList: checkMelodyView()
+ function onUpdateNotesList() : void { updateNotesList() }
+ function onUpdateMelodyList() : void { checkMelodyView() }
}
Connections {
target: melCombo
- onCurrentIndexChanged: checkMelodyView()
+ function onCurrentIndexChanged() : void { checkMelodyView() }
}
}
diff --git a/src/qml/score/MelGenDialog.qml b/src/qml/score/MelGenDialog.qml
index 62dd7ad0a64d87c55aae7f62579cc79dbaf26472..dfa7ec094cb695bb19b8ad3f2c1bbf35cfeb5559 100644
--- a/src/qml/score/MelGenDialog.qml
+++ b/src/qml/score/MelGenDialog.qml
@@ -149,7 +149,7 @@ TmelGenItem {
Connections {
target: genButt
- onClicked: {
+ function onClicked() : void {
generate();
dialLoader.close();
}
diff --git a/src/qml/score/Scordature.qml b/src/qml/score/Scordature.qml
index 6b03608a8378778f61d98bb3ac1d8f82c7f8ca20..0353da128254547bd0db8638d4314463f379aaf6 100644
--- a/src/qml/score/Scordature.qml
+++ b/src/qml/score/Scordature.qml
@@ -65,7 +65,7 @@ Grid {
Connections {
target: GLOB
- onNoteNameStyleChanged: {
+ function onNoteNameStyleChanged() : void {
for (var s = 0; s < scordModel.count; ++s) scordModel.get(s).name = GLOB.tuning.stringName(scordModel.get(s).strNr)
}
}
diff --git a/src/qml/settings/GlobalPage.qml b/src/qml/settings/GlobalPage.qml
index 9e29e1d8bb35c7424374e3604de4ca7ae222f884..a733479408ffbfc40dfe2ea434aed71f6232cb75 100644
--- a/src/qml/settings/GlobalPage.qml
+++ b/src/qml/settings/GlobalPage.qml
@@ -361,10 +361,9 @@ Tflickable {
Connections {
target: dialogObj
- onUpdateSummary: {
+ function onUpdateSummary() : void {
if (!updater)
updater = Qt.createComponent("qrc:/updater/UpdaterPopup.qml").createObject(globalPage);
-
updater.open();
}
}
diff --git a/src/qml/sound/CountdownItem.qml b/src/qml/sound/CountdownItem.qml
index 2b74a010e17143183f100ff6a1ee7988f57017c2..6cd26f1e69131cd837101cc20490f903f4a5d4f9 100644
--- a/src/qml/sound/CountdownItem.qml
+++ b/src/qml/sound/CountdownItem.qml
@@ -23,10 +23,9 @@ TipRect {
Connections {
target: tempoBar
- onCntChanged: {
+ function onCntChanged() : void {
if (SOUND.metroRunning)
counter++;
-
}
}
diff --git a/src/qml/sound/NotesDiffBar.qml b/src/qml/sound/NotesDiffBar.qml
index 584a71933657609e9adf6ba8010eb2a58fdb5b0f..5051195b0e3a77e0ed5e8d6b052f5df0a8c95197 100644
--- a/src/qml/sound/NotesDiffBar.qml
+++ b/src/qml/sound/NotesDiffBar.qml
@@ -91,7 +91,7 @@ TnotesBarItem {
Connections {
target: GLOB
- onGuitarParamsChanged: setAmbitus(GLOB.loNote(), GLOB.hiNote())
+ function onGuitarParamsChanged() : void { setAmbitus(GLOB.loNote(), GLOB.hiNote()) }
}
}
diff --git a/src/qml/updater/TupdateSummary.qml b/src/qml/updater/TupdateSummary.qml
index d4f3653ef2c756ffc927ff3cafb3ef0d2d8369ec..d22c11d691e666fe838ebbfb29842112a86780cb 100644
--- a/src/qml/updater/TupdateSummary.qml
+++ b/src/qml/updater/TupdateSummary.qml
@@ -22,7 +22,7 @@ TupdateItem {
Connections {
target: dialogObj
- onUpdateSummary: {
+ function onUpdateSummary(version: string, changes: string, rules: var) : void {
console.log(version);
updateIt.version = version;
updateIt.changes = changes;
diff --git a/src/qml/wizard/WizardClef.qml b/src/qml/wizard/WizardClef.qml
index 814ecadc60b9678e56f194e6164bc3cc2767b56b..e3410c568ee37c89bda9a48c0e241c9507ee0063 100644
--- a/src/qml/wizard/WizardClef.qml
+++ b/src/qml/wizard/WizardClef.qml
@@ -84,7 +84,7 @@ Tflickable {
Connections {
target: nootkaWindow
- onInstrumentChanged: changeInstrument()
+ function onInstrumentChanged() : void { changeInstrument() }
}
}
diff --git a/src/qml/wizard/WizardInstrument.qml b/src/qml/wizard/WizardInstrument.qml
index a2420956290fae563e4a09951429f970e9d6bdd4..6f1c6c9cb7b96588d84f770749e383e052f87156 100644
--- a/src/qml/wizard/WizardInstrument.qml
+++ b/src/qml/wizard/WizardInstrument.qml
@@ -63,10 +63,9 @@ Tflickable {
Connections {
target: nootkaWindow.swipe
- onCurrentIndexChanged: {
+ function onCurrentIndexChanged() : void {
if (nootkaWindow.swipe.currentIndex != 1 && instrPage.instrument != instrSel.instrument)
instrPage.instrument = instrSel.instrument;
-
}
}
diff --git a/src/qml/wizard/WizardSax.qml b/src/qml/wizard/WizardSax.qml
index 0fc2deb0d61df59fee55d6677fdd2f167439b670..87eea419998bfe3ecea6efe0183b33a9e33c734d 100644
--- a/src/qml/wizard/WizardSax.qml
+++ b/src/qml/wizard/WizardSax.qml
@@ -83,7 +83,7 @@ Column {
Connections {
target: nootkaWindow
- onInstrumentChanged: transpose.shift = NOO.instr(nootkaWindow.instrument).transposition
+ function onInstrumentChanged() : void { transpose.shift = NOO.instr(nootkaWindow.instrument).transposition }
}
}