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

Adrien Maglo magsoft at videolan.org
Fri May 11 13:52:17 CEST 2018


This fixes the volume slider currently announced by screen readers as an
"unknown slider".
---
 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()
-- 
2.14.1



More information about the vlc-devel mailing list