WinRT: Use UtcTimeZone instead of QWinTimeZone backend
As registry access isn't possible on WinRT it cannot use QWinTimeZone as backend. Instead it uses QUtcTimeZone. Change-Id: I51c59a187e3da6e957d0b3f6376069d55c9fc2ec Reviewed-by: Andrew Knight <andrew.knight@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
This commit is contained in:
parent
bb4869a0c5
commit
4a76300854
@ -65,7 +65,8 @@ static QTimeZonePrivate *newBackendTimeZone()
|
||||
return new QMacTimeZonePrivate();
|
||||
#elif defined Q_OS_UNIX
|
||||
return new QTzTimeZonePrivate();
|
||||
#elif defined Q_OS_WIN
|
||||
// Registry based timezone backend not available on WinRT
|
||||
#elif defined Q_OS_WIN && !defined Q_OS_WINRT
|
||||
return new QWinTimeZonePrivate();
|
||||
#elif defined QT_USE_ICU
|
||||
return new QIcuTimeZonePrivate();
|
||||
@ -89,7 +90,8 @@ static QTimeZonePrivate *newBackendTimeZone(const QByteArray &olsenId)
|
||||
return new QMacTimeZonePrivate(olsenId);
|
||||
#elif defined Q_OS_UNIX
|
||||
return new QTzTimeZonePrivate(olsenId);
|
||||
#elif defined Q_OS_WIN
|
||||
// Registry based timezone backend not available on WinRT
|
||||
#elif defined Q_OS_WIN && !defined Q_OS_WINRT
|
||||
return new QWinTimeZonePrivate(olsenId);
|
||||
#elif defined QT_USE_ICU
|
||||
return new QIcuTimeZonePrivate(olsenId);
|
||||
|
@ -124,8 +124,10 @@ else:blackberry {
|
||||
HEADERS += tools/qlocale_blackberry.h
|
||||
}
|
||||
else:unix:SOURCES += tools/qelapsedtimer_unix.cpp tools/qlocale_unix.cpp tools/qtimezoneprivate_tz.cpp
|
||||
else:win32:SOURCES += tools/qelapsedtimer_win.cpp tools/qlocale_win.cpp tools/qtimezoneprivate_win.cpp
|
||||
else:integrity:SOURCES += tools/qelapsedtimer_unix.cpp tools/qlocale_unix.cpp
|
||||
else:win32 {
|
||||
SOURCES += tools/qelapsedtimer_win.cpp tools/qlocale_win.cpp
|
||||
!winrt: SOURCES += tools/qtimezoneprivate_win.cpp
|
||||
} else:integrity:SOURCES += tools/qelapsedtimer_unix.cpp tools/qlocale_unix.cpp
|
||||
else:SOURCES += tools/qelapsedtimer_generic.cpp
|
||||
|
||||
contains(QT_CONFIG, zlib) {
|
||||
|
Loading…
Reference in New Issue
Block a user