Commit 9c2923b0 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Fix simple_test_app compilation with Qt < 5.2



Change-Id: I3b903eb790e27e21d7759b989adf1e5077410677
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 83a37059
...@@ -152,10 +152,6 @@ void dummyStatement(...) {} ...@@ -152,10 +152,6 @@ void dummyStatement(...) {}
#include <QSharedPointer> #include <QSharedPointer>
#endif #endif
#if USE_TIMEZONE
#include <QTimeZone>
#endif
#if USE_GUILIB #if USE_GUILIB
#include <QAction> #include <QAction>
#include <QApplication> // QWidgets: Separate module as of Qt 5 #include <QApplication> // QWidgets: Separate module as of Qt 5
...@@ -168,8 +164,10 @@ void dummyStatement(...) {} ...@@ -168,8 +164,10 @@ void dummyStatement(...) {}
#include <QStandardItemModel> #include <QStandardItemModel>
#include <QTextCursor> #include <QTextCursor>
#include <QTextDocument> #include <QTextDocument>
#if USE_TIMEZONE
#include <QTimeZone> #include <QTimeZone>
#endif #endif
#endif
#if USE_SCRIPTLIB #if USE_SCRIPTLIB
#include <QScriptEngine> #include <QScriptEngine>
...@@ -711,10 +709,12 @@ namespace qdatetime { ...@@ -711,10 +709,12 @@ namespace qdatetime {
void testQTimeZone() void testQTimeZone()
{ {
#if USE_TIMEZONE
QTimeZone zz; QTimeZone zz;
QTimeZone tz("UTC+05:00"); QTimeZone tz("UTC+05:00");
BREAK_HERE; BREAK_HERE;
dummyStatement(&zz, &tz); dummyStatement(&zz, &tz);
#endif
} }
void testQDate() void testQDate()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment