diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ab9297..5dc74fa 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,6 +91,7 @@ IF( NOT USE_QT4) ENDIF() -status("Using third-party libraries:") +status("Dependencies:") +status(" QT:" USE_QT4 THEN "QT4" ELSE "QT5" ) status(" Use OpenCV:" USE_OPENCV THEN YES ELSE NO) status(" FFMPEG:" USE_FFMPEG THEN YES ELSE NO) diff --git a/source/SubWindowHandle.h b/source/SubWindowHandle.h index 4d90f98..dbf6910 100644 --- a/source/SubWindowHandle.h +++ b/source/SubWindowHandle.h @@ -74,6 +74,7 @@ public: Void seekEvent( UInt new_frame_num ); QImage* FrameToQImage( PlaYUVerFrame* curr_frame ); + Void refreshFrame(); InputStream* getInputStream() diff --git a/source/plaYUVerApp.cpp b/source/plaYUVerApp.cpp index dafb56d..964b6d5 100644 --- a/source/plaYUVerApp.cpp +++ b/source/plaYUVerApp.cpp @@ -66,7 +66,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 );