[vlc-devel] commit: Qt: update widget initialization (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:15 2010 +0100| [0759676c98fd71fd933a5f1b7de914b02c879592] | committer: Rémi Denis-Courmont 

Qt: update widget initialization

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

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

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

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index 7aac19d..831c20e 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -111,11 +111,9 @@ SoundWidget::SoundWidget( QWidget *_parent, intf_thread_t * _p_intf,
         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) ) );
-
+    libUpdateVolume();
     /* Force the update at build time in order to have a muted icon if needed */
-    userUpdateVolume( volumeSlider->value() );
+    updateMuteStatus();
 
     /* Volume control connection */
     CONNECT( volumeSlider, valueChanged( int ), this, refreshLabels( void ) );




More information about the vlc-devel mailing list