From e15b4ad0b7d4b1004acaef59294397322a2062cd Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 14 Oct 2014 13:45:12 +0100 Subject: [PATCH] Formatting files --- source/app/plaYUVerApp.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 525e4ca..2b74012 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -170,14 +170,14 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo ) if( !streamInfo ) { Int idx = findPlaYUVerStreamInfo( m_aRecentFileStreamInfo, fileName ); - streamInfo = (PlaYUVerStreamInfo*)(idx >= 0 ? &m_aRecentFileStreamInfo.at( idx ) : NULL); + streamInfo = ( PlaYUVerStreamInfo* )( idx >= 0 ? &m_aRecentFileStreamInfo.at( idx ) : NULL ); } if( !streamInfo ) - retChild = interfaceChild->loadFile( fileName ); + retChild = interfaceChild->loadFile( fileName ); else - retChild = interfaceChild->loadFile( streamInfo ); - if(retChild ) + retChild = interfaceChild->loadFile( streamInfo ); + if( retChild ) { statusBar()->showMessage( tr( "Loading file..." ) ); mdiArea->addSubWindow( interfaceChild ); @@ -195,11 +195,11 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo ) if( idx >= 0 ) m_aRecentFileStreamInfo.remove( idx ); m_aRecentFileStreamInfo.prepend( interfaceChild->getStreamInfo() ); - while ( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES ) + while( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES ) //#if( QT_VERSION_PLAYUVER == 5) // m_aRecentFileStreamInfo.removeLast(); //#else - m_aRecentFileStreamInfo.remove( m_aRecentFileStreamInfo.size() - 1); + m_aRecentFileStreamInfo.remove( m_aRecentFileStreamInfo.size() - 1 ); //#endif updateRecentFileActions(); @@ -499,15 +499,15 @@ Void plaYUVerApp::startPlay() } if( m_acPlayingSubWindows.size() > 0 ) { - UInt frameRate = m_acPlayingSubWindows.at( 0 )->getInputStream()->getFrameRate(); - UInt timeInterval = ( UInt )( 1000.0 / frameRate + 0.5 ); - qDebug( ) << "Desired frame rate: " - << QString::number( 1000 / timeInterval ) - << " fps"; - m_pcPlayingTimer->start( timeInterval ); - m_cTimer.start(); - m_bIsPlaying = true; - m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); + UInt frameRate = m_acPlayingSubWindows.at( 0 )->getInputStream()->getFrameRate(); + UInt timeInterval = ( UInt )( 1000.0 / frameRate + 0.5 ); + qDebug( ) << "Desired frame rate: " + << QString::number( 1000 / timeInterval ) + << " fps"; + m_pcPlayingTimer->start( timeInterval ); + m_cTimer.start(); + m_bIsPlaying = true; + m_arrayActions[PLAY_ACT]->setIcon( style()->standardIcon( QStyle::SP_MediaPause ) ); } } }