aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2013-12-18 18:57:57 +0200
committerhjk <hjk121@nokiamail.com>2013-12-19 07:30:51 +0100
commit9c2923b05f17293f24e8e9d94fe76aac1f17d8fb (patch)
treeeb9c7dd2f2e4617b0a9fdba962d503118ed37761 /tests
parent83a370591210d1fc7b3ffe7d9353d217ec46184f (diff)
Fix simple_test_app compilation with Qt < 5.2
Change-Id: I3b903eb790e27e21d7759b989adf1e5077410677 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/debugger/simple/simple_test_app.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index 1c064b44096..0542326baa3 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -152,10 +152,6 @@ void dummyStatement(...) {}
#include <QSharedPointer>
#endif
-#if USE_TIMEZONE
-#include <QTimeZone>
-#endif
-
#if USE_GUILIB
#include <QAction>
#include <QApplication> // QWidgets: Separate module as of Qt 5
@@ -168,8 +164,10 @@ void dummyStatement(...) {}
#include <QStandardItemModel>
#include <QTextCursor>
#include <QTextDocument>
+#if USE_TIMEZONE
#include <QTimeZone>
#endif
+#endif
#if USE_SCRIPTLIB
#include <QScriptEngine>
@@ -711,10 +709,12 @@ namespace qdatetime {
void testQTimeZone()
{
+#if USE_TIMEZONE
QTimeZone zz;
QTimeZone tz("UTC+05:00");
BREAK_HERE;
dummyStatement(&zz, &tz);
+#endif
}
void testQDate()