mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 03:53:23 +02:00
mainview: support wheel for changing text zoom
Change-Id: I4d5baebddd7de2d98515aabaab2b8811a6230d65 GitLab: #777
This commit is contained in:
parent
a088a3c231
commit
ef7323cf06
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue