]> git.sesse.net Git - vlc/commitdiff
qt4: no need for a static_cast to the parent class.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 25 Jan 2009 12:40:52 +0000 (13:40 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 25 Jan 2009 12:40:52 +0000 (13:40 +0100)
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/qt4.cpp

index fc9f87605361869a4236d740ee1961dfca66723d..15d1500129827742debedac0b91a533e381b6d30 100644 (file)
@@ -1035,7 +1035,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
 
         /* Force fs hidding */
         IMEvent *eHide = new IMEvent( FullscreenControlHide_Type, 0 );
-        QApplication::postEvent( this, static_cast<QEvent *>(eHide) );
+        QApplication::postEvent( this, eHide );
     }
     vlc_mutex_unlock( &lock );
 }
@@ -1062,11 +1062,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *p_vout, int i_mous
     {
         /* Show event */
         IMEvent *eShow = new IMEvent( FullscreenControlShow_Type, 0 );
-        QApplication::postEvent( this, static_cast<QEvent *>(eShow) );
+        QApplication::postEvent( this, eShow );
 
         /* Plan hide event */
         IMEvent *eHide = new IMEvent( FullscreenControlPlanHide_Type, 0 );
-        QApplication::postEvent( this, static_cast<QEvent *>(eHide) );
+        QApplication::postEvent( this, eHide );
     }
 }
 
index 44fc181e74f36d5de5d04d7c867e6b46c5996e11..d2e07ce351323f968ba15d738c380f7d30cb51f7 100644 (file)
@@ -943,7 +943,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
 {
     PLModel *p_model = (PLModel *) param;
     PLEvent *event = new PLEvent( PLUpdate_Type, 0 );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     return VLC_SUCCESS;
 }
 
@@ -952,9 +952,9 @@ static int PlaylistNext( vlc_object_t *p_this, const char *psz_variable,
 {
     PLModel *p_model = (PLModel *) param;
     PLEvent *event = new PLEvent( ItemUpdate_Type, oval.i_int );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     event = new PLEvent( ItemUpdate_Type, nval.i_int );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     return VLC_SUCCESS;
 }
 
@@ -963,7 +963,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_variable,
 {
     PLModel *p_model = (PLModel *) param;
     PLEvent *event = new PLEvent( ItemUpdate_Type, nval.i_int );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     return VLC_SUCCESS;
 }
 
@@ -972,7 +972,7 @@ static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
 {
     PLModel *p_model = (PLModel *) param;
     PLEvent *event = new PLEvent( ItemDelete_Type, nval.i_int );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     return VLC_SUCCESS;
 }
 
@@ -984,7 +984,7 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
     memcpy( p_add, nval.p_address, sizeof( playlist_add_t ) );
 
     PLEvent *event = new PLEvent( p_add );
-    QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+    QApplication::postEvent( p_model, event );
     return VLC_SUCCESS;
 }
 
index 711cb6c2826762b363d61d1e6e72b8b0febaa550..2dc83e7fc057e506e5b73176a6dcf4834f3b45b5 100644 (file)
@@ -277,7 +277,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
     InputManager *im = (InputManager*)param;
 
     IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
-    QApplication::postEvent( im, static_cast<QEvent*>(event) );
+    QApplication::postEvent( im, event );
     return VLC_SUCCESS;
 }
 
@@ -363,7 +363,7 @@ static int InputEvent( vlc_object_t *p_this, const char *,
     }
 
     if( event )
-        QApplication::postEvent( im, static_cast<QEvent*>(event) );
+        QApplication::postEvent( im, event );
     return VLC_SUCCESS;
 }
 void InputManager::UpdatePosition()
@@ -841,7 +841,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
     var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
 
     IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
-    customEvent( static_cast<QEvent*>(event) );
+    customEvent( event );
     delete event;
 }
 
@@ -956,7 +956,7 @@ static int PLItemChanged( vlc_object_t *p_this, const char *psz_var,
     MainInputManager *mim = (MainInputManager*)param;
 
     IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
-    QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+    QApplication::postEvent( mim, event );
     return VLC_SUCCESS;
 }
 
@@ -966,7 +966,7 @@ static int VolumeChanged( vlc_object_t *p_this, const char *psz_var,
     MainInputManager *mim = (MainInputManager*)param;
 
     IMEvent *event = new IMEvent( VolumeChanged_Type, newval.i_int );
-    QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+    QApplication::postEvent( mim, event );
     return VLC_SUCCESS;
 }
 
index e1e361563714d9098eacf8b47d3df63cd35546a1..8f54f33843a300eef8f38dfc12ac80127f89f7cb 100644 (file)
@@ -597,7 +597,7 @@ void MainInterface::toggleFSC()
    if( !fullscreenControls ) return;
 
    IMEvent *eShow = new IMEvent( FullscreenControlToggle_Type, 0 );
-   QApplication::postEvent( fullscreenControls, static_cast<QEvent *>(eShow) );
+   QApplication::postEvent( fullscreenControls, eShow );
 }
 
 void MainInterface::debug()
@@ -1174,7 +1174,7 @@ static int InteractCallback( vlc_object_t *p_this,
     intf_dialog_args_t *p_arg = new intf_dialog_args_t;
     p_arg->p_dialog = (interaction_dialog_t *)(new_val.p_address);
     DialogEvent *event = new DialogEvent( INTF_DIALOG_INTERACTION, 0, p_arg );
-    QApplication::postEvent( THEDP, static_cast<QEvent*>(event) );
+    QApplication::postEvent( THEDP, event );
     return VLC_SUCCESS;
 }
 
index 1f5bdd2e512796a3d08fbde99050fbcc0ca21a61..3f301f2102c1f7a31025da1562785aa6d1487b4f 100644 (file)
@@ -485,7 +485,7 @@ static void ShowDialog( intf_thread_t *p_intf, int i_dialog_event, int i_arg,
 {
     VLC_UNUSED( p_intf );
     DialogEvent *event = new DialogEvent( i_dialog_event, i_arg, p_arg );
-    QApplication::postEvent( THEDP, static_cast<QEvent*>(event) );
+    QApplication::postEvent( THEDP, event );
 }
 
 /**