summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2017-03-15 14:19:24 (GMT)
committerPaul Olav Tvete <paul.tvete@qt.io>2017-03-16 11:13:57 (GMT)
commit7c92929b7611d873df34434151fe28ae88daed4f (patch)
treefbfa9789b261455e61977a79edd0d088671cc6e6
parent15c0b967295b4be41c881335fe602c1afec65aec (diff)
downloadqtxmlpatterns-7c92929b7611d873df34434151fe28ae88daed4f.tar.gz
Build fix for -no-feature-timezonev5.9.0-beta1
Change-Id: I54b491fce5b38e0a10c939ec4cc69474ff594e1e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r--src/xmlpatterns/data/qabstractdatetime.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmlpatterns/data/qabstractdatetime.cpp b/src/xmlpatterns/data/qabstractdatetime.cpp
index 2e084ef..c608e20 100644
--- a/src/xmlpatterns/data/qabstractdatetime.cpp
+++ b/src/xmlpatterns/data/qabstractdatetime.cpp
@@ -38,7 +38,9 @@
****************************************************************************/
#include <QStringList>
+#if QT_CONFIG(timezone)
#include <QTimeZone>
+#endif
#include "qbuiltintypes_p.h"
#include "qitem_p.h"
@@ -387,11 +389,13 @@ void AbstractDateTime::copyTimeSpec(const QDateTime &from,
Q_ASSERT(to.timeSpec() == Qt::OffsetFromUTC);
return;
}
+#if QT_CONFIG(timezone)
case Qt::TimeZone:
{
to.setTimeZone(from.timeZone());
return;
}
+#endif
}
}