[vlc-commits] Qt: set an accessible name to the volume slider

Adrien Maglo git at videolan.org
Wed May 16 19:10:31 CEST 2018


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri May 11 13:52:17 2018 +0200| [d4423dacc123220678b5706b28b43df59061a77a] | committer: Jean-Baptiste Kempf

Qt: set an accessible name to the volume slider

This fixes the volume slider currently announced by screen readers as an
"unknown slider".

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4423dacc123220678b5706b28b43df59061a77a
---

 modules/gui/qt/components/controller_widget.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/components/controller_widget.cpp b/modules/gui/qt/components/controller_widget.cpp
index 7fcece07e8..392d806c83 100644
--- a/modules/gui/qt/components/controller_widget.cpp
+++ b/modules/gui/qt/components/controller_widget.cpp
@@ -123,6 +123,8 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
     CONNECT( this, valueReallyChanged( int ), this, userUpdateVolume( int ) );
     CONNECT( THEMIM, volumeChanged( float ), this, libUpdateVolume( float ) );
     CONNECT( THEMIM, soundMuteChanged( bool ), this, updateMuteStatus( bool ) );
+
+    setAccessibleName( qtr( "Volume slider" ) );
 }
 
 void SoundWidget::refreshLabels()



More information about the vlc-commits mailing list