Skip to content
Snippets Groups Projects
Commit 89c5d33c authored by SeeLook's avatar SeeLook
Browse files

Zoom score with mouse wheel + CTRL

parent 26e6fe09
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,26 @@ Score { ...@@ -43,6 +43,26 @@ Score {
scoreObj.enableDoubleAccidentals: GLOB.enableDoubleAccids scoreObj.enableDoubleAccidentals: GLOB.enableDoubleAccids
scoreObj.allowAdding: true 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 { Text {
id: keyName id: keyName
parent: firstStaff parent: firstStaff
......
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