[vlc-commits] Qt: put modules list in 2 columns

Jean-Baptiste Kempf git at videolan.org
Wed Aug 24 17:49:03 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug 24 17:39:52 2011 +0200| [a83fefd59eb020438010c7a5803398ab04bc3b68] | committer: Jean-Baptiste Kempf

Qt: put modules list in 2 columns

Close #5141

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

 modules/gui/qt4/components/preferences_widgets.cpp |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index aa771e7..fee61bc 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -660,6 +660,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
     VStringConfigControl( _p_this, _p_item, _parent )
 {
     groupBox = NULL;
+
     /* Special Hack */
     if( !p_item->psz_text ) return;
 
@@ -671,7 +672,11 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
 
     int boxline = 0;
     foreach ( checkBoxListItem *it, modules )
-        layoutGroupBox->addWidget( it->checkBox, boxline++, 0 );
+    {
+        layoutGroupBox->addWidget( it->checkBox, boxline / 2, boxline % 2 );
+        boxline++;
+    }
+
     layoutGroupBox->addWidget( text, boxline, 0 );
 
     if( !l )



More information about the vlc-commits mailing list