From 5b41c88864e2e6cb57cc9d37ca8ba35263827063 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Mon, 10 Dec 2007 18:45:18 +0000 Subject: [PATCH] =?utf8?q?Qt4=20-=20minwidth=20of=20dropdown=20inside=20se?= =?utf8?q?ttings=20dialogs,=20patch=20by=20Andr=C3=A9=20Weber?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- modules/gui/qt4/components/preferences_widgets.cpp | 6 +++++- modules/gui/qt4/dialogs/preferences.cpp | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 6844be6826..0f08e26d3c 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -354,6 +354,7 @@ StringListConfigControl::StringListConfigControl( vlc_object_t *_p_this, { label = new QLabel( qtr(p_item->psz_text) ); combo = new QComboBox(); + combo->setMinimumWidth( 80 ); finish( bycat ); if( !l ) { @@ -464,6 +465,7 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *_p_this, { label = new QLabel( qtr(p_item->psz_text) ); combo = new QComboBox(); + combo->setMinimumWidth( 80 ); finish( bycat ); if( !l ) { @@ -797,6 +799,7 @@ IntegerListConfigControl::IntegerListConfigControl( vlc_object_t *_p_this, { label = new QLabel( qtr(p_item->psz_text) ); combo = new QComboBox(); + combo->setMinimumWidth( 80 ); finish( bycat ); if( !l ) { @@ -896,7 +899,8 @@ FloatConfigControl::FloatConfigControl( vlc_object_t *_p_this, VFloatConfigControl( _p_this, _p_item, _parent ) { label = new QLabel( qtr(p_item->psz_text) ); - spin = new QDoubleSpinBox; spin->setMinimumWidth( 80 ); + spin = new QDoubleSpinBox; + spin->setMinimumWidth( 80 ); spin->setMaximumWidth( 90 ); spin->setAlignment( Qt::AlignRight ); finish(); diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp index e0076ee7d2..30fe02ec4c 100644 --- a/modules/gui/qt4/dialogs/preferences.cpp +++ b/modules/gui/qt4/dialogs/preferences.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include -- 2.39.2