Commit 4704ae3f authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Rémi Denis-Courmont

Qt: rename slots to explicit names

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 18addd46
...@@ -115,12 +115,12 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf, ...@@ -115,12 +115,12 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
VOLUME_MAX / (AOUT_VOLUME_MAX/2) ) ); VOLUME_MAX / (AOUT_VOLUME_MAX/2) ) );
/* Force the update at build time in order to have a muted icon if needed */ /* Force the update at build time in order to have a muted icon if needed */
updateVolume( volumeSlider->value() ); userUpdateVolume( volumeSlider->value() );
/* Volume control connection */ /* Volume control connection */
CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) ); CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
CONNECT( volumeSlider, sliderMoved( int ), this, updateVolume( int ) ); CONNECT( volumeSlider, sliderMoved( int ), this, userUpdateVolume( int ) );
CONNECT( THEMIM, volumeChanged( void ), this, updateVolume( void ) ); CONNECT( THEMIM, volumeChanged( void ), this, libUpdateVolume( void ) );
CONNECT( THEMIM, soundMuteChanged( void ), this, updateMuteStatus( void ) ); CONNECT( THEMIM, soundMuteChanged( void ), this, updateMuteStatus( void ) );
} }
...@@ -150,7 +150,7 @@ void SoundWidget::refreshLabels() ...@@ -150,7 +150,7 @@ void SoundWidget::refreshLabels()
} }
/* volumeSlider changed value event slot */ /* 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 */ /* Only if volume is set by user action on slider */
setMuted( false ); setMuted( false );
...@@ -161,7 +161,7 @@ void SoundWidget::updateVolume( int i_sliderVolume ) ...@@ -161,7 +161,7 @@ void SoundWidget::updateVolume( int i_sliderVolume )
} }
/* libvlc changed value event slot */ /* libvlc changed value event slot */
void SoundWidget::updateVolume() void SoundWidget::libUpdateVolume()
{ {
/* Audio part */ /* Audio part */
audio_volume_t i_volume; audio_volume_t i_volume;
......
...@@ -88,8 +88,8 @@ private: ...@@ -88,8 +88,8 @@ private:
bool b_is_muted; bool b_is_muted;
protected slots: protected slots:
void updateVolume( int ); void userUpdateVolume( int );
void updateVolume( void ); void libUpdateVolume( void );
void updateMuteStatus( void ); void updateMuteStatus( void );
void refreshLabels( void ); void refreshLabels( void );
void showVolumeMenu( QPoint pos ); void showVolumeMenu( QPoint pos );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment