support older QT versions

This commit is contained in:
Volker Fischer 2015-03-16 16:17:31 +00:00
parent 6a79848382
commit c9b92728fa

View file

@ -39,7 +39,9 @@
#include <QDesktopServices> #include <QDesktopServices>
#include <QUrl> #include <QUrl>
#include <QLocale> #include <QLocale>
#include <QElapsedTimer> #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
# include <QElapsedTimer>
#endif
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
#include "global.h" #include "global.h"
@ -1138,6 +1140,7 @@ public:
// Timing measurement ---------------------------------------------------------- // Timing measurement ----------------------------------------------------------
// intended for debugging the timing jitter of the sound card or server timer // intended for debugging the timing jitter of the sound card or server timer
#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
class CTimingMeas class CTimingMeas
{ {
public: public:
@ -1189,6 +1192,7 @@ protected:
QElapsedTimer ElapsedTimer; QElapsedTimer ElapsedTimer;
int iCnt; int iCnt;
}; };
#endif
/******************************************************************************\ /******************************************************************************\