Commit 96495216 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Getting rid of useless setCheckState( Qt::Checked ) when setChecked is enough...

parent a40b903f
......@@ -105,12 +105,12 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QWidget *_parent ) :
if( p_obj ) \
{ \
vlc_object_release( p_obj ); \
if( checkbox ) checkbox->setCheckState( Qt::Checked ); \
if( checkbox ) checkbox->setChecked( true ); \
else groupbox->setChecked( true ); \
} \
else \
{ \
if( checkbox ) checkbox->setCheckState( Qt::Unchecked ); \
if( checkbox ) checkbox->setChecked( false ); \
else groupbox->setChecked( false ); \
} \
} \
......
......@@ -261,9 +261,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
lastfm_pass_edit );
if( config_ExistIntf( VLC_OBJECT( p_intf ), "audioscrobbler" ) )
ui.lastfm->setCheckState( Qt::Checked );
ui.lastfm->setChecked( true );
else
ui.lastfm->setCheckState( Qt::Unchecked );
ui.lastfm->setChecked( false );
CONNECT( ui.lastfm, stateChanged( int ), this ,
lastfm_Changed( int ) );
}
......
......@@ -66,7 +66,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
if(! config_GetInt( p_intf, "qt-adv-options") )
ui.advancedFrame->hide();
else
ui.advancedCheckBox->setCheckState( Qt::Checked );
ui.advancedCheckBox->setChecked( true );
/* Buttons Creation */
QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum );
......
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