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
parent
687a206b2e
commit
a63d709195
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue