[vlc-commits] Qt: Preferences: rename member var.

Francois Cartegnie git at videolan.org
Fri Apr 5 21:26:55 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr  5 21:20:53 2013 +0200| [93322f91dc39e6dbc3c5ee799edc856fd3c55727] | committer: Francois Cartegnie

Qt: Preferences: rename member var.

Avoid confusion with b_small.

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

 modules/gui/qt4/dialogs/preferences.cpp |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp
index d18509d..10a9f80 100644
--- a/modules/gui/qt4/dialogs/preferences.cpp
+++ b/modules/gui/qt4/dialogs/preferences.cpp
@@ -68,13 +68,13 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
     types->setAlignment( Qt::AlignHCenter );
     QHBoxLayout *types_l = new QHBoxLayout;
     types_l->setSpacing( 3 ); types_l->setMargin( 3 );
-    small = new QRadioButton( qtr( "Simple" ), types );
-    small->setToolTip( qtr( "Switch to simple preferences view" ) );
-    types_l->addWidget( small );
+    simple = new QRadioButton( qtr( "Simple" ), types );
+    simple->setToolTip( qtr( "Switch to simple preferences view" ) );
+    types_l->addWidget( simple );
     all = new QRadioButton( qtr("All"), types ); types_l->addWidget( all );
     all->setToolTip( qtr( "Switch to full preferences view" ) );
     types->setLayout( types_l );
-    small->setChecked( true );
+    simple->setChecked( true );
 
     /* Tree and panel initialisations */
     advanced_tree = NULL;
@@ -141,7 +141,7 @@ PrefsDialog::PrefsDialog( QWidget *parent, intf_thread_t *_p_intf )
     BUTTONACT( cancel, cancel() );
     BUTTONACT( reset, reset() );
 
-    BUTTONACT( small, setSmall() );
+    BUTTONACT( simple, setSmall() );
     BUTTONACT( all, setAdvanced() );
 
     resize( 780, sizeHint().height() );
@@ -213,7 +213,7 @@ void PrefsDialog::setSmall()
     if( ! simple_panels[SPrefsDefaultCat] )
         changeSimplePanel( SPrefsDefaultCat );
 
-    small->setChecked( true );
+    simple->setChecked( true );
     stack->setCurrentIndex( SIMPLE );
     setWindowTitle( qtr( "Simple Preferences" ) );
 }
@@ -282,7 +282,7 @@ void PrefsDialog::showModulePrefs( char *psz_module )
 /* Actual apply and save for the preferences */
 void PrefsDialog::save()
 {
-    if( small->isChecked() && simple_tree->isVisible() )
+    if( simple->isChecked() && simple_tree->isVisible() )
     {
         msg_Dbg( p_intf, "Saving the simple preferences" );
         for( int i = 0 ; i< SPrefsMax; i++ ){



More information about the vlc-commits mailing list