Commit 93322f91 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: Preferences: rename member var.

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