Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
layout->addWidget( volumeSlider, 0, Qt::AlignBottom );
/* Set the volume from the config */
layout->addWidget( volumeSlider, 0, Qt::AlignBottom );
/* Set the volume from the config */
- volumeSlider->setValue( qRound( ( (qreal)config_GetInt( p_intf, "volume" ) ) *
- 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 */
- userUpdateVolume( volumeSlider->value() );
/* Volume control connection */
CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );
/* Volume control connection */
CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );