[vlc-commits] Qt: SoundSlider: always emit valuechange on slider move (fix #4658)
Francois Cartegnie
git at videolan.org
Sun Apr 10 16:16:57 CEST 2011
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Apr 10 13:23:26 2011 +0200| [f8fe27ad55fe9bf053fbd68c4defe1e96bc12e92] | committer: Francois Cartegnie
Qt: SoundSlider: always emit valuechange on slider move (fix #4658)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8fe27ad55fe9bf053fbd68c4defe1e96bc12e92
---
modules/gui/qt4/components/controller_widget.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 38ff00c..e77cdec 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -112,8 +112,8 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
updateMuteStatus();
/* Volume control connection */
- CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
- CONNECT( volumeSlider, sliderMoved( int ), this, userUpdateVolume( int ) );
+ volumeSlider->setTracking( true );
+ CONNECT( volumeSlider, valueChanged( int ), this, userUpdateVolume( int ) );
CONNECT( THEMIM, volumeChanged( void ), this, libUpdateVolume( void ) );
CONNECT( THEMIM, soundMuteChanged( void ), this, updateMuteStatus( void ) );
}
@@ -151,6 +151,7 @@ void SoundWidget::userUpdateVolume( int i_sliderVolume )
playlist_t *p_playlist = pl_Get( p_intf );
int i_res = i_sliderVolume * (AOUT_VOLUME_MAX / 2) / VOLUME_MAX;
aout_VolumeSet( p_playlist, i_res );
+ refreshLabels();
}
/* libvlc changed value event slot */
More information about the vlc-commits
mailing list