Commit bec83478 authored by Francois Cartegnie's avatar 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.
parent 68a63466
...@@ -266,6 +266,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -266,6 +266,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
QComboBox * name ## Device = new QComboBox( name ## Control ); \ QComboBox * name ## Device = new QComboBox( name ## Control ); \
name ## Layout->addWidget( name ## Device ); \ name ## Layout->addWidget( name ## Device ); \
name ## Label->setBuddy( name ## Device ); \ name ## Label->setBuddy( name ## Device ); \
name ## Device->setSizePolicy( QSizePolicy::Ignored, QSizePolicy::Preferred );\
outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 ); outputAudioLayout->addWidget( name ## Control, outputAudioLayout->rowCount(), 0, 1, -1 );
#define audioControl2( name) \ #define audioControl2( name) \
...@@ -289,7 +290,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -289,7 +290,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{ {
audioControl( alsa ); audioControl( alsa );
optionWidgets.append( alsaControl ); optionWidgets.append( alsaControl );
CONFIG_GENERIC_NO_UI( "alsa-audio-device" , StringList, alsaLabel, CONFIG_GENERIC_NO_UI( "alsa-audio-device" , StringList, alsaLabel,
alsaDevice ); alsaDevice );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment