[vlc-commits] Qt: audio_prefs: alsa devices combo: don't expand too much.

Francois Cartegnie git at videolan.org
Sun Apr 10 21:10:14 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Apr 10 21:05:22 2011 +0200| [bec8347882888d281fd053b6c6e744f54a55ccce] | committer: Francois Cartegnie

Qt: audio_prefs: alsa devices combo: don't expand too much.

Alsa devices listing can be really large and make layout to expand
beyond screen size.

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

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

diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index f54b433..4f1a932 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -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 );
             }



More information about the vlc-commits mailing list