qt: fix volume slider control
commitc3ed0e7a4fc3c517570ba543f0ddcbc98c4ecaa5
authorRomain Vimont <rom1v@videolabs.io>
Wed, 7 Apr 2021 16:27:05 +0000 (7 18:27 +0200)
committerPierre Lamot <pierre@videolabs.io>
Mon, 12 Apr 2021 08:13:30 +0000 (12 10:13 +0200)
tree383e07276d0818c0c2422e004b251cb8b1b71a15
parentf317d34c902c68c3192a71aba13752888a27c976
qt: fix volume slider control

When changing the volume slider with the mouse, the new value considered
the width of the complete component instead of the relevant visual part.

As a consequence, the slider did not follow the mouse correctly.

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