Commit 11233c1b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

qt4: dynamic_cast -> qobject_cast

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 46fa336f
......@@ -245,7 +245,7 @@ void OpenDialog::showTab( int i_tab )
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();
}
......@@ -285,7 +285,7 @@ void OpenDialog::signalCurrent( int i_tab )
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();
......@@ -300,7 +300,7 @@ void OpenDialog::cancel()
{
/* 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();
......@@ -359,7 +359,7 @@ void OpenDialog::enqueue( bool b_enqueue )
}
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();
......
......@@ -631,9 +631,9 @@ QRect PictureFlowSoftwareRenderer::renderSlide(const SlideInfo &slide, int col1,
QString artURL;
PLModel* plm = dynamic_cast<PLModel*>( state->model );
PLModel* plm = qobject_cast<PLModel*>( state->model );
#ifdef MEDIA_LIBRARY
MLModel* mlm = dynamic_cast<MLModel*>( state->model );
MLModel* mlm = qobject_cast<MLModel*>( state->model );
#endif
if( plm != 0 )
{
......
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