From a63d709195c2339ce5870a6b36e91d474347320f Mon Sep 17 00:00:00 2001 From: Alexander Rezepkin Date: Wed, 7 Dec 2022 20:36:15 +0300 Subject: [PATCH] QSysInfo::prettyProductName(): Add macOS Ventura product name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick-to: 6.2 6.3 6.4 5.15 Change-Id: I5f54866e30f08465943922e3dee5150f37054225 Reviewed-by: Tor Arne Vestbø Reviewed-by: Thiago Macieira --- src/corelib/global/qsysinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/corelib/global/qsysinfo.cpp b/src/corelib/global/qsysinfo.cpp index 8ddcbb0409..9df9d96b5e 100644 --- a/src/corelib/global/qsysinfo.cpp +++ b/src/corelib/global/qsysinfo.cpp @@ -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