From 7b77a1c2a68225d68041b6a342b3bb2df1482801 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao Date: Thu, 26 Oct 2023 17:03:31 +0800 Subject: [PATCH] QOSV: Add Win11 23H2 Windows 11 23H2 (10.0.22631) will be released publicly soon, it's better add it to Qt now. Pick-to: 6.6 Change-Id: I1bcec19d3a15e778f2c5e504d1e5cf678753f5a2 Reviewed-by: Thiago Macieira --- src/corelib/global/qoperatingsystemversion.cpp | 6 ++++++ src/corelib/global/qoperatingsystemversion.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/corelib/global/qoperatingsystemversion.cpp b/src/corelib/global/qoperatingsystemversion.cpp index 257835e0bc..f09032227b 100644 --- a/src/corelib/global/qoperatingsystemversion.cpp +++ b/src/corelib/global/qoperatingsystemversion.cpp @@ -479,6 +479,12 @@ const QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_21H2; */ const QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_22H2; +/*! + \variable QOperatingSystemVersion::Windows11_23H2 + \brief a version corresponding to Windows 11 Version 23H2 (version 10.0.22631). + \since 6.6 + */ + /*! \variable QOperatingSystemVersion::OSXMavericks \brief a version corresponding to OS X Mavericks (version 10.9). diff --git a/src/corelib/global/qoperatingsystemversion.h b/src/corelib/global/qoperatingsystemversion.h index a360231208..a11c90072f 100644 --- a/src/corelib/global/qoperatingsystemversion.h +++ b/src/corelib/global/qoperatingsystemversion.h @@ -120,6 +120,7 @@ class QOperatingSystemVersion : public QOperatingSystemVersionBase // ### Qt7: Regroup with the rest below static constexpr QOperatingSystemVersionBase MacOSSonoma { QOperatingSystemVersionBase::MacOS, 14, 0 }; static constexpr QOperatingSystemVersionBase Android14 { QOperatingSystemVersionBase::Android, 14, 0 }; + static constexpr QOperatingSystemVersionBase Windows11_23H2 { QOperatingSystemVersionBase::Windows, 10, 0, 22631 }; #if QT_VERSION < QT_VERSION_CHECK(7, 0, 0) && !defined(QT_BOOTSTRAPPED) && !defined(Q_QDOC) };