From a80f773b58c10690139aa1c90a04616c518ec001 Mon Sep 17 00:00:00 2001 From: kleuter Date: Tue, 26 Apr 2022 11:26:37 +0200 Subject: [PATCH] 5.15.9 - macOS Monterey detection, backport of https://github.com/qt/qtbase/commit/b3dc0fec2bdc8ab03107f906a94850b1b94b53af --- 5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.cpp | 4 ++++ 5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.h | 1 + 2 files changed, 5 insertions(+) diff --git a/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.cpp b/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.cpp index 1a76352..3d55732 100644 --- a/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.cpp +++ b/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.cpp @@ -470,6 +470,10 @@ const QOperatingSystemVersion QOperatingSystemVersion::MacOSBigSur = [] { return QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 10, 16); }(); +const QOperatingSystemVersion QOperatingSystemVersion::MacOSMonterey = [] { + return QOperatingSystemVersion(QOperatingSystemVersion::MacOS, 12, 0); +}(); + /*! \variable QOperatingSystemVersion::AndroidJellyBean \brief a version corresponding to Android Jelly Bean (version 4.1, API level 16). diff --git a/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.h b/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.h index abd818a..69e5041 100644 --- a/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.h +++ b/5.15.9/qtbase/src/corelib/global/qoperatingsystemversion.h @@ -73,6 +73,7 @@ public: static const QOperatingSystemVersion MacOSMojave; static const QOperatingSystemVersion MacOSCatalina; static const QOperatingSystemVersion MacOSBigSur; + static const QOperatingSystemVersion MacOSMonterey; static const QOperatingSystemVersion AndroidJellyBean; static const QOperatingSystemVersion AndroidJellyBean_MR1;