forked from qt-creator/qt-creator
Fix simple_test_app compilation with Qt < 5.2
Change-Id: I3b903eb790e27e21d7759b989adf1e5077410677 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user