According to QUIP-18 [1]
all file under snippets or examples should be
LicenseRef-Qt-Commercial OR BSD-3-Clause
[1]: https://contribute.qt-project.org/quips/18
Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I58b6175b10be2463d4bc8034ad08432e0b3e77d7
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
We've been requiring C++17 since Qt 6.0, and our qAsConst use finally
starts to bother us (QTBUG-99313), so time to port away from it
now.
Since qAsConst has exactly the same semantics as std::as_const (down
to rvalue treatment, constexpr'ness and noexcept'ness), there's really
nothing more to it than a global search-and-replace.
Task-number: QTBUG-99313
Change-Id: Ie1515f334c831500607e24f9c7103f12e4ba98b8
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.
Existing copyright statements remain intact
Task-number: QTBUG-88621
Change-Id: I6037589b6cb21970616972a95b656119fda64a7e
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.
Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: I52b9410c22909f4253094d2458d309e7f6ad2620
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
qt_examples_build_begin needs the EXTERNAL_BUILD flag
to know that it's safe to build examples as ExternalProjects.
It still won't do it in CI until we enable building
examples as ExternalProjects for prefix builds.
This is preparation for that.
Pick-to: 6.2 6.3
Task-number: QTBUG-90820
Change-Id: Iaa0489718998bba3f05d6c6ffc1e468e1e00c4a2
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
- Remove '# generated from ' comments
- Only opt into CMAKE_AUTOUIC if .ui files are involved
- Only opt into CMAKE_AUTORCC if .qrc files are involved
- Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR
- Combine multiple find_package(Qt6 ... calls)
- use REQUIRED COMPONENTS
- sort components alphabetically
- Fix wrong indentations
- Use (only) one empty line after multi-line commands
Pick-to: 6.3
Change-Id: I2e2a59159c15dd1412265f7dc90aed418a1d98d1
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
As well as the MACOSX_BUNDLE properties as necessary.
Task-number: QTBUG-87664
Change-Id: I297f054622ec8f9bc5fbca6444ff33e18f1159db
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
The additional Qt5 namespace in Qt5Compat requires projects using
classes from there not only to touch the buildsystem to link to the
module but also the code itself. This hampers migration from Qt5 to Qt6.
Note that adding a plain 'using namespace Qt5;' in some central header is
not sufficient as a work around when using QTextCodec.
Task-number: QTBUG-85504
Change-Id: Id179663b70dd2c5f45e2e09f3dfac53377faa380
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>