diff --git a/src/qml/MainScore.qml b/src/qml/MainScore.qml index ee49bb47805af611e93e3569a7ccc650235581b1..eab2cd3f4d54200ffbdabc08f52fe0f1d306c72b 100644 --- a/src/qml/MainScore.qml +++ b/src/qml/MainScore.qml @@ -43,6 +43,26 @@ Score { scoreObj.enableDoubleAccidentals: GLOB.enableDoubleAccids scoreObj.allowAdding: true + Timer { id: zoomTimer; interval: 500 } + MouseArea { + anchors.fill: parent + onWheel: { + if (wheel.modifiers & Qt.ControlModifier) { + if (wheel.angleDelta.y > 0) { + if (!zoomTimer.running) { + zoomInAct.trigger() + zoomTimer.running = true + } + } else if (wheel.angleDelta.y < 0) { + if (!zoomTimer.running) { + zoomOutAct.trigger() + zoomTimer.running = true + } + } + } + } + } + Text { id: keyName parent: firstStaff