Commit 0c5b1abc authored by Clément Stenac's avatar Clément Stenac

WTF isn't QEvent a QObject ?

parent 4ca4116e
...@@ -57,7 +57,7 @@ void DialogsProvider::customEvent( QEvent *event ) ...@@ -57,7 +57,7 @@ void DialogsProvider::customEvent( QEvent *event )
{ {
if( event->type() == DialogEvent_Type ) if( event->type() == DialogEvent_Type )
{ {
DialogEvent *de = qobject_cast<DialogEvent*>(event); DialogEvent *de = static_cast<DialogEvent*>(event);
switch( de->i_dialog ) switch( de->i_dialog )
{ {
case INTF_DIALOG_FILE: case INTF_DIALOG_FILE:
......
...@@ -311,7 +311,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input ) ...@@ -311,7 +311,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input )
/************************* Updates handling *****************************/ /************************* Updates handling *****************************/
void PLModel::customEvent( QEvent *event ) void PLModel::customEvent( QEvent *event )
{ {
PLEvent *ple = qobject_cast<PLEvent *>(event); PLEvent *ple = static_cast<PLEvent *>(event);
if( event->type() == ItemUpdate_Type ) if( event->type() == ItemUpdate_Type )
ProcessInputItemUpdate( ple->i_id ); ProcessInputItemUpdate( ple->i_id );
......
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