summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Docs: fix QT_NO_FOREACH/KEYWORDS macro documentationVolker Hilsheimer3 days1-0/+13
| | | | | | | | | | QT_NO_FOREACH didn't related to anything so the documentation wasn't generated, and QT_NO_KEYWORDS wasn't documented but referenced. Pick-to: 6.7 Change-Id: I7b79e61519c186d10f8e8c674705adb3d10bd53a Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Long live [[nodiscard]] QFile::openGiuseppe D'Angelo2024-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having already caught some bugs in real code because of unchecked calls to QFile::open, this commit marks QFile::open (and open() in other file-I/O classes) as [[nodiscard]]. Since it's going to raise warnings, the plan is to keep the existing behavior up to and including the next LTS. Then the warnings will switch on by default. All of this is protected by system of macros to opt-in or opt-out the behavioral change at any time. A possible counter-argument for doing this is that QFile::open is also used for opening files in the the resource system, and that opening "cannot fail". It clearly can, if the resource is moved away or renamed; code should at a minimum use a Q_ASSERT in debug builds. Another counter-argument is the opening of file handles or descriptors; but again, that opening may fail in case the handle has been closed or if the flags are incompatible. --- Why not marking *every* open() override? Because some are not meant to be called directly -- for instance sockets are supposed to be open via calls to `connectToHost` or similar. One notable exception is QIODevice::open() itself. Although rarely called directly by user code (which just calls open() on a specific subclass, which likely has an override), it may be called: 1) By code that just takes a `QIODevice *` and does something with it. That code is arguably more rare than code using QFile directly. Still, being "generic" code, they have an extra responsibility when making sure to handle a possible opening failure. 2) By QIODevice subclasses, which are even more rare. However, they usually ignore the return from QIODevice::open() as it's unconditionally true. (QIODevice::open() doesn't use the protected virtual pattern.) I'll try and tackle QIODevice in a future commit. [ChangeLog][QtCore][QFileDevice] The open() functions of file-related I/O classes (such as QFile, QSaveFile, QTemporaryFile) can now be marked with the "nodiscard" attribute, in order to prevent a category of bugs where the return value of open() is not checked and the file is then used. In order to avoid warnings in existing code, the marking can be opted in or out, by defining QT_USE_NODISCARD_FILE_OPEN or the QT_NO_USE_NODISCARD_FILE_OPEN macros. By default, Qt will automatically enable nodiscard on these functions starting from Qt 6.10. Change-Id: Ied940e1c0a37344f5200b2c51b05cd1afcb2557d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* qt_int_sqrt: update doc of where it is usedThiago Macieira2024-04-101-2/+2
| | | | | Change-Id: If1bf59ecbe014b569ba1fffd17c458ae3af0175f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Long live QT_ENABLE_STRICT_MODE_UP_TOGiuseppe D'Angelo2024-03-131-0/+45
| | | | | | | | | | | | | | | | | | | We already have fine-grained macros to individually disable APIs that we consider "suboptimal" or "dangerous". This commit adds a shortcut for the user to set all such macros in one go. QT_ENABLE_STRICT_MODE_UP_TO is versioned, just like QT_DISABLE_DEPRECATED_UP_TO; the idea is that users should set it to the minimum Qt version they want to support. Also, if QT_DISABLE_DEPRECATED_UP_TO is not set, then QT_ENABLE_STRICT_MODE_UP_TO will set it as well, to the same value. [ChangeLog][QtCore][QtGlobal] Added the QT_ENABLE_STRICT_MODE_UP_TO macro. Change-Id: I5466465986104e047a6a86369928be9294f24ab7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Move qAbort from qglobal.cpp to qassert.cppThiago Macieira2024-03-061-74/+0
| | | | | | | | | | | It makes more sense there, as all the other functions in that file are about early termination. This allows us to remove qglobal.cpp from the bootstrap library, because qglobal.cpp now only has the callback tables. Amends 8f13af5d7b9b659208a8a93e6581d30b434dae1f. Change-Id: I01ec3c774d9943adb903fffd17b7ea92404bdbd3 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Move qVersion() into it's own headerMarc Mutz2022-12-081-1/+2
| | | | | | | | | | | | | | | | | | | | Partially reverts 50b05e3e2ad969abf4b939d5db2253380e47d775. The move of qVersion() from qglobal.h into qlibraryinfo.h, a header not included by qglobal.h, was a conscious, documented, QUIP-0006- allowed, but stetching the SiC Type A definition, and therefore unwarranted, SiC. Fix by moving qVersion() into its own header file, qtversion.h, included from qglobal.h. [ChangeLog][Editorial] Remove the entry for qVersion() being moved to qlibraryinfo.h. Fixes: QTBUG-108818 Change-Id: I3524802348635512a63fbbb55ddc28ad28f331e8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* QtGlobal: update the description sectionSona Kurazyan2022-10-061-106/+44
| | | | | | | | | | | Don't mention the macros, functions and types that are moved to other headers. Descriptions for most of these were moved to docs of corresponding headers. Update the <QtGlobal> docs to only mention what is currently there. Task-number: QTBUG-106154 Change-Id: I693b7665c75d9b7c129e0646a4202e6d3e4e8499 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move the rest of macros from qglobal to QtPreprocessorSupportIvan Solovev2022-10-061-10/+0
| | | | | | | | | | | | | | | | We had only three macros left in QtGlobal: * QT_STRINGIFY * Q_UNUSED() * Q_UNIMPLEMENTED() There is no obvious existing header for them, so a new header is created. As a drive-by: add documentation for QT_STRINGIFY. Task-number: QTBUG-106154 Task-number: QTBUG-99313 Change-Id: I2d051dd3e69f13602893a0f0d6968419479b6c23 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move qAsConst() and qExchange() to QtTypeTraitsIvan Solovev2022-10-061-96/+0
| | | | | | | | | | | | It's the least worst place we could think of. Add the qttypetraits.h include to qforeach, because otherwise the tests fail to build. Task-number: QTBUG-106154 Task-number: QTBUG-99313 Change-Id: I841f22e887f351146589377ec2376957e2adfd5e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move QFunctionPointer typedef to a separate headerIvan Solovev2022-10-061-7/+0
| | | | | | | | Task-number: QTBUG-99313 Task-number: QTBUG-106154 Change-Id: I8c62e5c2c2f80d5ce1d4dce69eebbe7d1ebbfd52 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Provide documentation for qprocessordetection.h headerIvan Solovev2022-10-061-380/+0
| | | | | | | | | The description of the macros in this header should not belong to <QtGlobal>, so move it to a separate documentation page. Task-number: QTBUG-106154 Change-Id: Ia1dc8738b390cb93b4a058cd23cc084c2d4ec9c1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Provide documentation for qcompilerdetection.h headerIvan Solovev2022-10-061-371/+0
| | | | | | | | | The description of the macros in this header should not belong to <QtGlobal>, so move it to a separate documentation page. Task-number: QTBUG-106154 Change-Id: Ic31604b96d9ebea6e8aac285b00a8d4c82b15c9a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Provide documentation for qsystemdetection.h headerIvan Solovev2022-10-061-183/+0
| | | | | | | | | The description of the macros in this header should not belong to <QtGlobal>, so move it to a separate documentation page. Task-number: QTBUG-106154 Change-Id: Ic484f8b5ac137b052864937b526384e821f38fda Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move docs for QT_REQUIRE_VERSION to qmessagebox.cppSona Kurazyan2022-09-221-19/+0
| | | | | | Task-number: QTBUG-106154 Change-Id: I880b25a7dd4b834aa6b23a670bddddac6aaec256 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Move docs for Q_DECLARE_TYPEINFO to qtypeinfo.qdocSona Kurazyan2022-09-221-52/+0
| | | | | | | Task-number: QTBUG-106154 Change-Id: I318eb85caf188573915e3417e7470fd0a6efabca Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move docs for helpers from QtForeach to qforeach.qdocSona Kurazyan2022-09-221-71/+0
| | | | | | | Task-number: QTBUG-106154 Change-Id: Icc2fbce4a96d18e9af880d4b0ee4a31cb360e5ed Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move docs for deprecation macros to qtdeprecationmarkers.qdocSona Kurazyan2022-09-221-51/+0
| | | | | | | | | | | | | Additionally: - Generate the QtDeprecationMarkers fw header - Add an overview page for QtDeprecationMarkers (otherwise the docs for deprecated QT_DISABLE_DEPRECATED_BEFORE aren't generated) - Fix docs to stop mentioning deprecated QT_DISABLE_DEPRECATED_BEFORE. Task-number: QTBUG-106154 Change-Id: Ic8c45ba3d9d267036ca470b208676a3ac82485eb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move the implementation and docs of QSysInfo to qsysinfo.cppSona Kurazyan2022-09-221-1046/+0
| | | | | | | Task-number: QTBUG-106154 Change-Id: Ib2d812104b3514fb255d79ab6e4097ec6a851e21 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Move QT_VERSION_STR docs to qlibraryinfo.cppSona Kurazyan2022-09-221-12/+0
| | | | | | Task-number: QTBUG-106154 Change-Id: Iba5f4d76dc220dc0ea3c7463151bfb3b8e85c02e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move docs for Q_INT64_C()/Q_UINT64_C() macros to qtypes.cppSona Kurazyan2022-09-221-26/+0
| | | | | | Task-number: QTBUG-106154 Change-Id: I5975a1633c2848d13e95cb857b31bb1eab11573c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Improve docs for QtNumeric headerSona Kurazyan2022-09-211-119/+0
| | | | | | | | | | | | - Move the docs for functions from qnumeric.h from qglobal.cpp to qnumeric.cpp. - Update the '\relates' commands to refer to QtNumeric instead of QtGlobal. - Add overview page. Task-number: QTBUG-106154 Change-Id: Id39f2508415995a4c7a9dcc0a323447dbe348978 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move QFlags docs from qglobal.cpp to qflags.qdocSona Kurazyan2022-09-211-457/+0
| | | | | | Task-number: QTBUG-106154 Change-Id: Ibcd306c98b71d334d12724e667a5c7bd13a140d7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Fix docs for types and macros from qlogging.hSona Kurazyan2022-09-011-200/+0
| | | | | | | | | | | Move the docs types and macros from qlogging.h from qglobal.cpp to qlogging.cpp. Generate the QtLogging forward header and update the '\relates' commands accordingly. Change-Id: I2abaf531b2749ff43909f835efd980e1fc98f278 Task-numer: QTBUG-106154 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move qVersion() from qglobal.h to qlibraryinfo.hSona Kurazyan2022-09-011-15/+0
| | | | | | | | | | | | | | | Since qVersion() might be called also from C code, disable the parts of qlibraryinfo.h that are relevant only for C++ code if __cplusplus is not defined. [ChangeLog][Potentially Source-Incompatible Changes] qVersion() is moved from qglobal.h to qlibraryinfo.h, '#include <QtCore/QLibraryInfo>' needs to be added where it's used. Task-number: QTBUG-99313 Change-Id: I3363ef3fa4073114e5151cb3a2a1e8282ad42a4d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Extract header qdarwinhelpers.h from qglobal.hSona Kurazyan2022-08-301-32/+0
| | | | | | | Task-number: QTBUG-99313 Change-Id: Ia25270d381de99c5fcbb205d750e7bf86d4438dc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move qSharedBuild() from qglobal.h to qlibraryinfo.hSona Kurazyan2022-08-291-9/+0
| | | | | | | | | | | [ChangeLog][Potentially Source-Incompatible Changes] qSharedBuild() is moved from qglobal.h to qlibraryinfo.h, '#include <QtCore/QLibraryInfo>' needs to be added where it's used. Task-number: QTBUG-99313 Change-Id: Ic64561a8eb129ba2934e2770ca02119de208a2a5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Yuhang Zhao <2546789017@qq.com>
* Extract header qtypetraits.h from qglobal.hSona Kurazyan2022-08-251-9/+0
| | | | | | Task-number: QTBUG-99313 Change-Id: I6cb76607213ca5d64dec669a39e8a59e13b21497 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move docs for qlonglong and qulonglong to QtTypesSona Kurazyan2022-08-251-19/+0
| | | | | | | These were missed by fc3441101b201ae37fda899bf69b5b4ded790a26. Change-Id: I3a0c3a24d584e9cdc753647bcb6a3829291c9499 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Rename QT_DISABLE_DEPRECATED_BEFORE -> QT_DISABLE_DEPRECATED_UP_TOIvan Solovev2022-08-191-13/+23
| | | | | | | | | | | | | | The new name describes the behavior in a better way. [ChangeLog][Build System] The QT_DISABLE_DEPRECATED_BEFORE macro is renamed to QT_DISABLE_DEPRECATED_UP_TO. The old name is deprecated, but is still recognized if it is defined during configuration and the new name is not defined. Task-number: QTBUG-104944 Change-Id: Ifc34323e0bbd9e3dc2f86c3e80d4d0940ebccbb8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* Extract header qtclasshelpermacros.hSona Kurazyan2022-08-191-57/+0
| | | | | | | | | | Move the class helper macros from qglobal.h and Q_DECLARE_SHARED from qtypeinfo.h there. Task-number: QTBUG-99313 Change-Id: I8c8b6241a76916176a48c09fbaf4effc87683770 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
* Extract header qexceptionhandling.h from qglobal.hSona Kurazyan2022-08-191-15/+0
| | | | | | | | | | | As a drive-by, remove the unused include for std::bad_alloc from qglobal.cpp. Task-number: QTBUG-99313 Change-Id: I4b26b4413e6fe7ac3b1e285d0db5b81b429a4713 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Mark C++11/C++14 portability macros as deprecatedKai Köhne2022-08-141-31/+5
| | | | | | | Pick-to: 6.4 Fixes: QTBUG-105542 Change-Id: If99a47858c5b48a726ad323fba6bf871bfda37d0 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Move qMin/qMax/qBound() to a separate qminmax.h headerIvan Solovev2022-08-111-37/+0
| | | | | | | | | | | | | Also replaced qMin() uses in qnumeric.h with QtPrivate::min(). Including qassert.h in qminmax.h leads to indirect include of qglobal.h (through qcompilerdetection.h), which in turn leads to qMin() declaration not being available at the point the compiler sees qFuzzyCompare() definitions in qnumeric.h. This makes the headersclean build fail. Task-number: QTBUG-99313 Change-Id: I824422698b06f94a4a62e2f19d4507c87f90334e Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Extract header qtypes.h from qglobal.hSona Kurazyan2022-08-111-316/+0
| | | | | | | | | | | And move the related checks from qglobal.cpp to qtypes.cpp. This requires removing the unnecessary include statement for qglobal.h from qprocessordetection.h, that now needs to be included in qtypes.h. Task-number: QTBUG-99313 Change-Id: Ifd72b956326909be82c162f37854cad0878010e2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Move Q_ASSUME and Q_UNREACHABLE to qassert.hSona Kurazyan2022-08-051-62/+1
| | | | | | | | | As a drive-by, add a link back to Q_ASSUME() in Q_LIKELY() docs. Change-Id: I4a46e281d0fbf55c11001f15667fcc4faa3b0c5b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Move Q_CHECK_PTR and related helpers to qassert.hSona Kurazyan2022-08-051-60/+0
| | | | | | | Task-number: QTBUG-99313 Change-Id: Ia4152f0aad15975d8aebbbc506c8a76c8fbe144f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix generation of the forward header for QFunctionPointerSona Kurazyan2022-08-051-1/+1
| | | | | | | | | | | | | | The forward header for QFunctionPointer was being generated by accident, apparently syncqt is confused because of some of the preceding lines. If the lines are rearranged or removed, the header won't be generated. Not sure if there's much value in generating a header for it, but at least one of Qt sources (qeglfsemulatorintegration.h) is using it in an include statment, and there's a chance it's used in the user code as well. Change-Id: Iced505881ddb07e7a8336fcdfb7d3e5397c6466c Pick-to: 6.4 6.3 6.2 5.15 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Extract header qassert.h from qglobal.hSona Kurazyan2022-08-051-63/+0
| | | | | | | | | | | | For now qassert.h is included in the middle of qglobal.h, since some of the code below needs it, but this will be cleaned up when that code is moved in its own header. Task-number: QTBUG-99313 Change-Id: I2cdfed44f5c8772c1dad4797cf8edc6cb4c964b4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Move q{,Utf8, Utf16}Printable to qstring.hSona Kurazyan2022-08-041-61/+0
| | | | | | | Task-number: QTBUG-99313 Change-Id: I76ef84e4c90ab04a3e04c165ba46800e27ea6122 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* QSysInfo::prettyProductName(): add missing macOS product namesYuhang Zhao2022-08-031-2/+9
| | | | | | | Pick-to: 6.2 6.3 6.4 5.15 Change-Id: I9163917187b7a4cbf48e443303313b25473b229f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Extract header qtversionchecks.h from qglobal.hSona Kurazyan2022-07-291-44/+0
| | | | | | Task-number: QTBUG-99313 Change-Id: Iaaa6a055367e861d095b92e3e85e5bc340e6bbc1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Extract header qenvironmentvariables.h from qglobal.hSona Kurazyan2022-07-291-328/+0
| | | | | | | | | | | | | qcontainerfwd.h was relying on the forward declaration of QByteArray in qglobal.h, so add the missing forward declaration there. Additionally, had to move the implementations of qTzSet() and qMkTime() to qenvironmentvariables.cpp along with environmentMutex. Task-number: QTBUG-99313 Change-Id: I233aff305c2fedaf0a48362cc99ff2d6f6c0ee54 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Extract header qoverload.h from qglobal.hSona Kurazyan2022-07-291-51/+0
| | | | | | Task-number: QTBUG-99313 Change-Id: Id827f95b5aa5d4e0d57dcc1060a0746bcaa34db3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Extract header qtranslation.h from qglobal.hSona Kurazyan2022-07-291-204/+0
| | | | | | | | As a drive-by, fixed the sorting order of header includes. Task-number: QTBUG-99313 Change-Id: I731e397f8488460657b31839c49f07ff3c476c66 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* QSysInfo: update docs to mention the latest osYuhang Zhao2022-07-091-10/+8
| | | | | | | | | | | | Update to the latest stable version. Beta/preview versions not included. Removed Amazon Linux AMI because it's no longer maintained. Removed tvOS because it now shares the same version with iOS and iPadOS. Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I40e5286b132b8198bf315a2868f89428e8c2f23a Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Move numeric functions from qglobal.h to qnumeric.hIvan Solovev2022-07-081-9/+9
| | | | | | Task-number: QTBUG-99313 Change-Id: Ic7f7d6ea6d2b81a8593c7cfe05aee1d62921afd1 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Darwin: Replace deprecated symbol kIOMasterPortDefault with equivalentTor Arne Vestbø2022-07-061-1/+2
| | | | | | | | | | | | | | We can't use the replacement kIOMainPortDefault yet, as it's not available in operating system versions we still support, but the kIOMasterPortDefault documentation explicitly says that passing NULL as a port argument indicates "use the default". As the underlying type of a mach_port_t is potentially either a pointer or an unsigned int, we initialize the default to 0. Pick-to: 6.2 6.3 6.4 5.15 Change-Id: I288aa94b8f2fbda47fd1cbaf329799db7ab988a0 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix Windows display versionYuhang Zhao2022-05-261-5/+10
| | | | | | | | | The "ReleaseId" key's value stopped updating since Windows 10 20H2, so we should query the new "DisplayVersion" key when running on Windows 10 20H2 and onwards. Change-Id: Ifaa8287f9812126bde0390337af0cda23ff8e529 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* qglobal: resolve one Qt6 TODOYuhang Zhao2022-05-231-12/+4
| | | | | | | | Tested with MSVC 2022 locally and this change doesn't break the bootstrapped builds. Change-Id: Ieeb9a77035d889b9c1ed0c0c3488ac8802879282 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-161-39/+3
| | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>