]> git.sesse.net Git - vlc/commitdiff
Qt: audio_prefs: alsa devices combo: don't expand too much.
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 10 Apr 2011 19:05:22 +0000 (21:05 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 10 Apr 2011 19:09:47 +0000 (21:09 +0200)
Alsa devices listing can be really large and make layout to expand
beyond screen size.

modules/gui/qt4/components/simple_preferences.cpp

index f54b433b6a8ac934f06ca941a4620a25a17b41b3..4f1a9326e122547e006db6bed41ee3b5dffb6cac 100644 (file)
@@ -266,6 +266,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             QComboBox * name ## Device = new QComboBox( name ## Control ); \
             name ## Layout->addWidget( name ## Device ); \
             name ## Label->setBuddy( name ## Device ); \
+            name ## Device->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Preferred  );\
             outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
 
 #define audioControl2( name) \
@@ -289,7 +290,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             {
                 audioControl( alsa );
                 optionWidgets.append( alsaControl );
-
                 CONFIG_GENERIC_NO_UI( "alsa-audio-device" , StringList, alsaLabel,
                                 alsaDevice );
             }