[vlc-commits] Qt: preferences: expand root level.

Francois Cartegnie git at videolan.org
Sat Feb 25 20:37:11 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Feb 25 20:28:00 2012 +0100| [b2cfa07fb0899f5b9370e8dd4792108474071024] | committer: Francois Cartegnie

Qt: preferences: expand root level.

We have only 5 items, and lots of empty space.
Let's save the user 1 click and give him a better overall view
of categories.

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

 .../gui/qt4/components/complete_preferences.cpp    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/complete_preferences.cpp b/modules/gui/qt4/components/complete_preferences.cpp
index bfbcebb..d14ebf6 100644
--- a/modules/gui/qt4/components/complete_preferences.cpp
+++ b/modules/gui/qt4/components/complete_preferences.cpp
@@ -131,6 +131,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
             current_item->setData( 0, Qt::UserRole,
                                    qVariantFromValue( data ) );
             addTopLevelItem( current_item );
+            expandItem( current_item );
             break;
 
         /* This is a subcategory */



More information about the vlc-commits mailing list