Skip to content
Snippets Groups Projects
Commit ef7323cf authored by Sébastien Blin's avatar Sébastien Blin
Browse files

mainview: support wheel for changing text zoom

Change-Id: I4d5baebddd7de2d98515aabaab2b8811a6230d65
GitLab: #777
parent a088a3c2
No related branches found
No related tags found
No related merge requests found
......@@ -520,6 +520,15 @@ Rectangle {
}
}
WheelHandler {
onWheel: (wheel)=> {
if (wheel.modifiers & Qt.ControlModifier) {
var delta = wheel.angleDelta.y / 120
UtilsAdapter.setAppValue(Settings.BaseZoom, parseFloat(UtilsAdapter.getAppValue(Settings.BaseZoom)) + delta * 0.1)
}
}
}
Shortcut {
sequence: "Ctrl++"
context: Qt.ApplicationShortcut
......
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