QSysInfo::prettyProductName(): Add macOS Ventura product name

Pick-to: 6.2 6.3 6.4 5.15
Change-Id: I5f54866e30f08465943922e3dee5150f37054225
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Alexander Rezepkin 2022-12-07 20:36:15 +03:00
parent 687a206b2e
commit a63d709195
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ using namespace Qt::StringLiterals;
static const char *osVer_helper(QOperatingSystemVersion version = QOperatingSystemVersion::current())
{
#ifdef Q_OS_MACOS
if (version.majorVersion() == 13)
return "Ventura";
if (version.majorVersion() == 12)
return "Monterey";
// Compare against predefined constant to handle 10.16/11.0