Amend #if-ery to exclude MS QTZP backend declaration when not in use

Since 2017 we've been using the ICU backend in preference to the MS
one, so there's no point declaring the MS one when it's not being
compiled.

Pick-to: 6.5
Change-Id: Ia7b770ec27bb627caace814b972967c4f7d63330
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 0de55973d37a951fb5d5f596d7967f1978865845)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Edward Welbourne 2023-10-30 19:10:53 +01:00 committed by Qt Cherry-pick Bot
parent 0dc1dac296
commit 371dd6c6bd

View File

@ -379,7 +379,7 @@ private:
};
#endif // Q_OS_DARWIN
#ifdef Q_OS_WIN
#if defined(Q_OS_WIN) && !QT_CONFIG(icu)
class Q_AUTOTEST_EXPORT QWinTimeZonePrivate final : public QTimeZonePrivate
{
public:
@ -435,7 +435,7 @@ private:
QString m_daylightName;
QList<QWinTransitionRule> m_tranRules;
};
#endif // Q_OS_WIN
#endif // Q_OS_WIN && !icu
#ifdef Q_OS_ANDROID
class QAndroidTimeZonePrivate final : public QTimeZonePrivate