summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/data')
-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
}
}