support older QT versions
This commit is contained in:
parent
6a79848382
commit
c9b92728fa
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************\
|
/******************************************************************************\
|
||||||
|
|
Loading…
Reference in a new issue