aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-08-15 22:42:38 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-08-16 08:29:36 +0000
commit44776760babe3e3bdf0b00903db91387e2780a42 (patch)
treed2a1add9b96d0eb32b398b0bc5a1d2e763447516
parentc76db4d085cf9d6bc459fdb26473446aa1bd6296 (diff)
Tests: Add #include <QtGlobal> for version checks
It is required with Qt 5.11. Change-Id: Ie6aee4a5d71a370952f908561a40ccc2d34d31c5 Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--tests/auto/debugger/tst_dumpers.cpp1
-rw-r--r--tests/auto/debugger/tst_offsets.cpp2
-rw-r--r--tests/helper/qmlapplicationviewer/qmlapplicationviewer.cpp1
3 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp
index f004a229bd..06414bff07 100644
--- a/tests/auto/debugger/tst_dumpers.cpp
+++ b/tests/auto/debugger/tst_dumpers.cpp
@@ -1339,6 +1339,7 @@ void tst_Dumpers::dumper()
"\n\n" + data.includes +
"\n\n" + (data.useQHash ?
"\n#include <QByteArray>"
+ "\n#include <QtGlobal>"
"\n#if QT_VERSION >= 0x050900"
"\n#include <QHash>"
"\nvoid initHashSeed() { qSetGlobalQHashSeed(0); }"
diff --git a/tests/auto/debugger/tst_offsets.cpp b/tests/auto/debugger/tst_offsets.cpp
index 5dca246bcf..8bba5fd529 100644
--- a/tests/auto/debugger/tst_offsets.cpp
+++ b/tests/auto/debugger/tst_offsets.cpp
@@ -37,6 +37,8 @@
#endif
#endif
+#include <QtGlobal>
+
#include <private/qdatetime_p.h>
#include <private/qfile_p.h>
#include <private/qfileinfo_p.h>
diff --git a/tests/helper/qmlapplicationviewer/qmlapplicationviewer.cpp b/tests/helper/qmlapplicationviewer/qmlapplicationviewer.cpp
index 0a87431867..5c63c4e432 100644
--- a/tests/helper/qmlapplicationviewer/qmlapplicationviewer.cpp
+++ b/tests/helper/qmlapplicationviewer/qmlapplicationviewer.cpp
@@ -42,6 +42,7 @@
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
+#include <QtCore/QtGlobal>
#include <QtDeclarative/QDeclarativeComponent>
#include <QtDeclarative/QDeclarativeEngine>
#include <QtDeclarative/QDeclarativeContext>