qt: improve volume slider control
commita9bcc2cb04ee38c85d886091c0e03302858ad203
authorRomain Vimont <rom1v@videolabs.io>
Wed, 7 Apr 2021 16:27:06 +0000 (7 18:27 +0200)
committerPierre Lamot <pierre@videolabs.io>
Mon, 12 Apr 2021 08:13:30 +0000 (12 10:13 +0200)
tree91fb0f3d94a85974fbd9506333e2eb9af50970c3
parentc3ed0e7a4fc3c517570ba543f0ddcbc98c4ecaa5
qt: improve volume slider control

The slider has some width, which must be taken into account to compute
the volume.

This avoids to control the left of the handle near 0% but the right of
the handle near 125%. Instead, it always controls the center of the
handle.

Signed-off-by: Pierre Lamot <pierre@videolabs.io>
modules/gui/qt/player/qml/VolumeWidget.qml