[vlc-commits] [Git][videolan/vlc][master] qml: consider horizontal wheel events in `WheelToVLCConverter` of `VolumeWidget.qml`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Jan 19 10:38:12 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
cf03e5ea by Fatih Uzunoglu at 2025-01-19T10:23:47+00:00
qml: consider horizontal wheel events in `WheelToVLCConverter` of `VolumeWidget.qml`
- - - - -
1 changed file:
- modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
Changes:
=====================================
modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
=====================================
@@ -322,12 +322,17 @@ T.Pane {
WheelToVLCConverter {
id: wheelToVLC
- onWheelUpDown: (steps, modifiers) => {
+ function handle(steps: int) {
if (steps > 0)
Player.setVolumeUp(steps)
else
Player.setVolumeDown(-steps)
}
+
+ Component.onCompleted: {
+ wheelUpDown.connect(wheelToVLC.handle)
+ wheelLeftRight.connect(wheelToVLC.handle)
+ }
}
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cf03e5ea9850ae855a5ded44649372ed27aa9fe3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cf03e5ea9850ae855a5ded44649372ed27aa9fe3
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list