5.15.9 - macOS Monterey detection, backport of b3dc0fec2b

This commit is contained in:
kleuter 2022-04-26 11:26:37 +02:00
parent baea518e88
commit a80f773b58
2 changed files with 5 additions and 0 deletions

View File

@ -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).

View File

@ -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;