Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release-src > by-pkgid > 4c532bfb9916518564da5ba2805999f5 > files > 73

qtbase5-5.15.12-3.mga10.src.rpm

From 3a36ffb82f6cc77110c624d140640f849860b422 Mon Sep 17 00:00:00 2001
From: Alexander Rezepkin <etu@vivaldi.net>
Date: Wed, 7 Dec 2022 20:36:15 +0300
Subject: [PATCH 074/147] 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ø <tor.arne.vestbo@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit a63d709195c2339ce5870a6b36e91d474347320f)
---
 src/corelib/global/qglobal.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 7428d8ec42..ecf7b1efaa 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -2137,6 +2137,8 @@ QT_WARNING_POP
 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
-- 
2.40.1