From 3d76888a998c4ab65f5c4076094d8e36f9bf36c8 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 5 Mar 2014 17:53:36 +0000 Subject: [PATCH] Fix compatibility with QT4 in QTimer usage --- source/plaYUVerApp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/plaYUVerApp.cpp b/source/plaYUVerApp.cpp index 53580c5..7bd192f 100644 --- a/source/plaYUVerApp.cpp +++ b/source/plaYUVerApp.cpp @@ -64,7 +64,9 @@ plaYUVerApp::plaYUVerApp() setUnifiedTitleAndToolBarOnMac( true ); playingTimer = new QTimer; +#if( QT_VERSION_PLAYUVER == 5 ) playingTimer->setTimerType( Qt::CoarseTimer ); +#endif connect( playingTimer, SIGNAL( timeout() ), this, SLOT( playEvent() ) ); setAcceptDrops( true );