[vlc-devel] commit: GUI: sprefs_audio hide lastfm when not checked (Francois Cartegnie )

git version control git at videolan.org
Wed Aug 12 00:47:16 CEST 2009


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Aug 12 00:40:24 2009 +0200| [7d45ebdb61b94784664c82deb2dc63cf07eca85a] | committer: Jean-Baptiste Kempf 

GUI: sprefs_audio hide lastfm when not checked

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

 modules/gui/qt4/components/simple_preferences.cpp |    4 ++--
 modules/gui/qt4/ui/sprefs_audio.ui                |    6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index e167796..076bd69 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -347,10 +347,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
                 else
                     ui.lastfm->setChecked( false );
 
-                ui.lastfm_zone->setEnabled( ui.lastfm->isChecked() );
+                ui.lastfm_zone->setVisible( ui.lastfm->isChecked() );
 
                 CONNECT( ui.lastfm, toggled( bool ),
-                         ui.lastfm_zone, setEnabled( bool ) );
+                         ui.lastfm_zone, setVisible( bool ) );
                 CONNECT( ui.lastfm, stateChanged( int ),
                          this, lastfm_Changed( int ) );
             }
diff --git a/modules/gui/qt4/ui/sprefs_audio.ui b/modules/gui/qt4/ui/sprefs_audio.ui
index bdcb070..b48cb19 100644
--- a/modules/gui/qt4/ui/sprefs_audio.ui
+++ b/modules/gui/qt4/ui/sprefs_audio.ui
@@ -11,6 +11,12 @@
     <height>619</height>
    </rect>
   </property>
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
   <property name="windowTitle">
    <string>Form</string>
   </property>




More information about the vlc-devel mailing list