Qt4 - Getting rid of useless setCheckState( Qt::Checked ) when setChecked is enough...
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Dec 2007 07:06:00 +0000 (07:06 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 19 Dec 2007 07:06:00 +0000 (07:06 +0000)
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/dialogs/open.cpp

index 349ed29..3c6aab7 100644 (file)
@@ -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 ); \
         } \
     } \
index 58285f0..797e0ee 100644 (file)
@@ -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 ) );
             }
index c40665a..8cc64a4 100644 (file)
@@ -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 );