]> git.sesse.net Git - vlc/commitdiff
GUI: sprefs_audio hide lastfm when not checked
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 11 Aug 2009 22:40:24 +0000 (00:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 11 Aug 2009 22:40:24 +0000 (00:40 +0200)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_audio.ui

index e167796f1af9ae7b230092827b91a1f75dc8fb84..076bd69d4ba354ce9e2f4d175f02cfbae37b9aa4 100644 (file)
@@ -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 ) );
             }
index bdcb070356d40cbc4d57cc9d42164bfd8ddadcd2..b48cb1956e986e898d4575698bb68eab9efb9618 100644 (file)
     <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>