Commit 5b41c888 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - minwidth of dropdown inside settings dialogs, patch by André Weber

parent c8a09ea6
...@@ -354,6 +354,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this, ...@@ -354,6 +354,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this,
{ {
label = new QLabel( qtr(p_item->psz_text) ); label = new QLabel( qtr(p_item->psz_text) );
combo = new QComboBox(); combo = new QComboBox();
combo->setMinimumWidth( 80 );
finish( bycat ); finish( bycat );
if( !l ) if( !l )
{ {
...@@ -464,6 +465,7 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *_p_this, ...@@ -464,6 +465,7 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *_p_this,
{ {
label = new QLabel( qtr(p_item->psz_text) ); label = new QLabel( qtr(p_item->psz_text) );
combo = new QComboBox(); combo = new QComboBox();
combo->setMinimumWidth( 80 );
finish( bycat ); finish( bycat );
if( !l ) if( !l )
{ {
...@@ -797,6 +799,7 @@ IntegerListConfigControl::IntegerListConfigControl( vlc_object_t *_p_this, ...@@ -797,6 +799,7 @@ IntegerListConfigControl::IntegerListConfigControl( vlc_object_t *_p_this,
{ {
label = new QLabel( qtr(p_item->psz_text) ); label = new QLabel( qtr(p_item->psz_text) );
combo = new QComboBox(); combo = new QComboBox();
combo->setMinimumWidth( 80 );
finish( bycat ); finish( bycat );
if( !l ) if( !l )
{ {
...@@ -896,7 +899,8 @@ FloatConfigControl::FloatConfigControl( vlc_object_t *_p_this, ...@@ -896,7 +899,8 @@ FloatConfigControl::FloatConfigControl( vlc_object_t *_p_this,
VFloatConfigControl( _p_this, _p_item, _parent ) VFloatConfigControl( _p_this, _p_item, _parent )
{ {
label = new QLabel( qtr(p_item->psz_text) ); label = new QLabel( qtr(p_item->psz_text) );
spin = new QDoubleSpinBox; spin->setMinimumWidth( 80 ); spin = new QDoubleSpinBox;
spin->setMinimumWidth( 80 );
spin->setMaximumWidth( 90 ); spin->setMaximumWidth( 90 );
spin->setAlignment( Qt::AlignRight ); spin->setAlignment( Qt::AlignRight );
finish(); finish();
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QPushButton> #include <QPushButton>
#include <QCheckBox> #include <QCheckBox>
#include <QScrollArea>
#include <QMessageBox> #include <QMessageBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
......
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