[vlc-devel] commit: Qt: rename slots to explicit names (Francois Cartegnie )

git version control git at videolan.org
Sun Jan 10 14:51:34 CET 2010


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan  8 00:02:14 2010 +0100| [4704ae3fc98d6bea83f3f4290d314cfabce16001] | committer: Rémi Denis-Courmont 

Qt: rename slots to explicit names

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/gui/qt4/components/controller_widget.cpp |   10 +++++-----
 modules/gui/qt4/components/controller_widget.hpp |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 8775fe4..7aac19d 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -115,12 +115,12 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
                               VOLUME_MAX / (AOUT_VOLUME_MAX/2) ) );
 
     /* Force the update at build time in order to have a muted icon if needed */
-    updateVolume( volumeSlider->value() );
+    userUpdateVolume( volumeSlider->value() );
 
     /* Volume control connection */
     CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
-    CONNECT( volumeSlider, sliderMoved( int ), this, updateVolume( int ) );
-    CONNECT( THEMIM, volumeChanged( void ), this, updateVolume( void ) );
+    CONNECT( volumeSlider, sliderMoved( int ), this, userUpdateVolume( int ) );
+    CONNECT( THEMIM, volumeChanged( void ), this, libUpdateVolume( void ) );
     CONNECT( THEMIM, soundMuteChanged( void ), this, updateMuteStatus( void ) );
 }
 
@@ -150,7 +150,7 @@ void SoundWidget::refreshLabels()
 }
 
 /* volumeSlider changed value event slot */
-void SoundWidget::updateVolume( int i_sliderVolume )
+void SoundWidget::userUpdateVolume( int i_sliderVolume )
 {
     /* Only if volume is set by user action on slider */
     setMuted( false );
@@ -161,7 +161,7 @@ void SoundWidget::updateVolume( int i_sliderVolume )
 }
 
 /* libvlc changed value event slot */
-void SoundWidget::updateVolume()
+void SoundWidget::libUpdateVolume()
 {
     /* Audio part */
     audio_volume_t i_volume;
diff --git a/modules/gui/qt4/components/controller_widget.hpp b/modules/gui/qt4/components/controller_widget.hpp
index 71864e9..5727da3 100644
--- a/modules/gui/qt4/components/controller_widget.hpp
+++ b/modules/gui/qt4/components/controller_widget.hpp
@@ -88,8 +88,8 @@ private:
     bool                b_is_muted;
 
 protected slots:
-    void updateVolume( int );
-    void updateVolume( void );
+    void userUpdateVolume( int );
+    void libUpdateVolume( void );
     void updateMuteStatus( void );
     void refreshLabels( void );
     void showVolumeMenu( QPoint pos );




More information about the vlc-devel mailing list