From 617e91d13ada81d1f987fa67447ef734a6adadc9 Mon Sep 17 00:00:00 2001 From: kleuter Date: Tue, 11 Jul 2023 16:22:00 +0200 Subject: [PATCH] 5.5.14 QOperatingSystemVersion Monterey & Ventura support --- .../qtbase/src/corelib/global/qoperatingsystemversion.cpp | 8 ++++++++ .../qtbase/src/corelib/global/qoperatingsystemversion.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.cpp b/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.cpp index 1a76352..c28019e 100644 --- a/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.cpp +++ b/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.cpp @@ -470,6 +470,14 @@ const QOperatingSystemVersion QOperatingSystemVersion::MacOSBigSur = [] { return QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 10, 16); }(); +const QOperatingSystemVersion QOperatingSystemVersion::MacOSMonterey = [] { + return QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 12, 0); +}(); + +const QOperatingSystemVersion QOperatingSystemVersion::MacOSVentura = [] { + return QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 13, 0); +}(); + /*! \variable QOperatingSystemVersion::AndroidJellyBean \brief a version corresponding to Android Jelly Bean (version 4.1, API level 16). diff --git a/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.h b/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.h index abd818a..4a141cc 100644 --- a/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.h +++ b/5.15.14/qtbase/src/corelib/global/qoperatingsystemversion.h @@ -73,6 +73,8 @@ public: static const QOperatingSystemVersion MacOSMojave; static const QOperatingSystemVersion MacOSCatalina; static const QOperatingSystemVersion MacOSBigSur; + static const QOperatingSystemVersion MacOSMonterey; + static const QOperatingSystemVersion MacOSVentura; static const QOperatingSystemVersion AndroidJellyBean; static const QOperatingSystemVersion AndroidJellyBean_MR1;