Minor changes in stream handling class and fix some code only supported by qt5

This commit is contained in:
jfmcarreira committed 2014-10-06 16:09:32 +01:00
1 parent db5b6ffa62
commit c34a16e61c
2 files changed
+11 -18

No files matched your search

+5 -1
View File
@@ -189,7 +189,11 @@ Void plaYUVerApp::loadFile( QString fileName, PlaYUVerStreamInfo* streamInfo )
m_aRecentFileStreamInfo.remove( idx );
m_aRecentFileStreamInfo.prepend( interfaceChild->getStreamInfo() );
while ( m_aRecentFileStreamInfo.size() > MAX_RECENT_FILES )
m_aRecentFileStreamInfo.removeLast();
//#if( QT_VERSION_PLAYUVER == 5)
// m_aRecentFileStreamInfo.removeLast();
//#else
m_aRecentFileStreamInfo.removeAt( m_aRecentFileStreamInfo.size() - 1);
//#endif
updateRecentFileActions();
statusBar()->showMessage( tr( "File loaded" ), 2000 );