Commit b91b84d6 authored by Rémi Duraffort's avatar Rémi Duraffort

qt4: no need for a static_cast to the parent class.

parent 513870cc
......@@ -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 );
}
}
......@@ -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;
}
......@@ -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;
}
......@@ -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;
}
......
......@@ -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 );
}
/**
......
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