Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
show();
if( ui.Tab->currentWidget() != NULL )
{
show();
if( ui.Tab->currentWidget() != NULL )
{
- OpenPanel *panel = dynamic_cast<OpenPanel *>( ui.Tab->currentWidget() );
+ OpenPanel *panel = qobject_cast<OpenPanel *>( ui.Tab->currentWidget() );
assert( panel );
panel->onFocus();
}
assert( panel );
panel->onFocus();
}
if( i_tab == OPEN_CAPTURE_TAB ) captureOpenPanel->initialize();
if( ui.Tab->currentWidget() != NULL )
{
if( i_tab == OPEN_CAPTURE_TAB ) captureOpenPanel->initialize();
if( ui.Tab->currentWidget() != NULL )
{
- OpenPanel *panel = dynamic_cast<OpenPanel *>( ui.Tab->currentWidget() );
+ OpenPanel *panel = qobject_cast<OpenPanel *>( ui.Tab->currentWidget() );
assert( panel );
panel->onFocus();
panel->updateMRL();
assert( panel );
panel->onFocus();
panel->updateMRL();
{
/* Clear the panels */
for( int i = 0; i < OPEN_TAB_MAX; i++ )
{
/* Clear the panels */
for( int i = 0; i < OPEN_TAB_MAX; i++ )
- dynamic_cast<OpenPanel*>( ui.Tab->widget( i ) )->clear();
+ qobject_cast<OpenPanel*>( ui.Tab->widget( i ) )->clear();
/* Clear the variables */
itemsMRL.clear();
/* Clear the variables */
itemsMRL.clear();
}
for( int i = 0; i < OPEN_TAB_MAX; i++ )
}
for( int i = 0; i < OPEN_TAB_MAX; i++ )
- dynamic_cast<OpenPanel*>( ui.Tab->widget( i ) )->onAccept();
+ qobject_cast<OpenPanel*>( ui.Tab->widget( i ) )->onAccept();
/* Sort alphabetically */
itemsMRL.sort();
/* Sort alphabetically */
itemsMRL.sort();
- PLModel* plm = dynamic_cast<PLModel*>( state->model );
+ PLModel* plm = qobject_cast<PLModel*>( state->model );
- MLModel* mlm = dynamic_cast<MLModel*>( state->model );
+ MLModel* mlm = qobject_cast<MLModel*>( state->model );