According to QUIP-18 [1], all test files should be
LicenseRef-Qt-Commercial OR GPL-3.0-only
[1]: https://contribute.qt-project.org/quips/18
Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I6c16797a88702de06726a78511f71a62a5c91e13
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
According to QUIP-18 [1] all files under examples
should be licensed
LicenseRef-Qt-Commercial OR BSD-3-Clause
[1]: https://contribute.qt-project.org/quips/18
Pick-to: 6.7 6.7.0
Task-number: QTBUG-121787
Change-Id: Ia2e8f62af64a384196a9b0c02ac5b2fbf5404a8b
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
The density of Q_FOREACH uses is moderate here, but too high for this
author, unfamiliar with this code, to tackle in a short amount of
time. But they're concentrated in just a few TUs, so pick a different
strategy:
Mark the whole module with QT_NO_FOREACH, to prevent new uses from
creeping in, and whitelist the affected TUs by #undef'ing
QT_NO_FOREACH locally, at the top of each file. For TUs that are part
of a larger executable, this requires these files to be compiled
separately, so add them to NO_PCH_SOURCES (which implies
NO_UNITY_BUILD_SOURCES, too). NB: there are none such TUs in this
module.
Created QTBUG-115830 to keep track of this.
Task-number: QTBUG-115830
Change-Id: I68c9394c04af68cab46480153a5601828565461a
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Add the boilerplate standalone test prelude to each test, so that they
can be opened with an IDE without the qt-cmake-standalone-test script,
but directly with qt-cmake or cmake.
Boilerplate was added using the following scripts:
https://git.qt.io/alcroito/cmake_refactor
Manual adjustments were made where the code was inserted in the wrong
location.
Task-number: QTBUG-93020
Change-Id: I7365aaefb8c6325c39219b2e359367602b3d47d7
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Use e.g. Qt6::Core instead of Qt::Core. This is better matching the
find_package(Qt6 ...) call, and also avoids issues that the versionless
targets have.
Pick-to: 6.5
Task-number: QTBUG-113277
Change-Id: I9bc7963d8524ef2ab061e32aef428711646247a7
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
As we are now processing the arguments with
cmake_parse_arguments(PARSE_ARGV, we don't need to pass the escape
characters anymore.
Task-number: QTBUG-99238
Change-Id: I04c38ec742906dfbe542714c6c91f2712a5e6fb9
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This is a semantic patch using ClangTidyTransformator as in
qtbase/df9d882d41b741fef7c5beeddb0abe9d904443d8:
auto QtContainerClass = expr(hasType(namedDecl(hasAnyName(<classes>)))).bind(o)
makeRule(cxxMemberCallExpr(on(QtContainerClass),
callee(cxxMethodDecl(hasAnyName({"count", "length"),
parameterCountIs(0))))),
changeTo(cat(access(o, cat("size"), "()"))),
cat("use 'size()' instead of 'count()/length()'"))
a.k.a qt-port-to-std-compatible-api with config Scope: 'Container',
with the extended set of container classes recognized.
Change-Id: Iead0ad46548d86af9677f3bab4e500e6a458f0e7
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Add UI and client side extension for the RESTful Address Book example
Fixes: QTBUG-105199
Pick-to: 6.4
Change-Id: I01c5e2ac44838f01ccbb73d5b6e1d1e578c67618
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@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: I9499ba4c20f610ffe8af0fc3e29e6581247f2c40
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: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
The tests tst_examples::sgexamples is expecting the examples to be
present on local filesystem, some changes are needed to have this work
on Android.
Pick-to: 6.2 6.3
Task-number: QTBUG-88846
Task-number: QTBUG-103597
Change-Id: Ida1cb185204626908f5f13da8cfec3a55740d22b
Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Modify special case locations to use the new API as well.
Task-number: QTBUG-86815
Change-Id: Ibd1d0f4069be8e247b607e86cf31ffa57f542bd9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Also fix tst_qqmlparser, see qtdeclarative 1b10ce6a08
and 59410dd2f5.
Change-Id: I2cf686907fbaf5c54b92ebb49f5458bdcf257672
Reviewed-by: Liang Qi <liang.qi@qt.io>
Clashes with qqmlparser test in qtdeclarative
Change-Id: Iaf3dc0259e6e7d8542cb30792c8208e9e66cda77
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
qmlmin was removed from declarative in commit
4527d87e8f24e99658020900d9eb114d86d4dc82.
Change-Id: I0b39189aa75162e5f5fad5e900031a6726ec0f0d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Implementations of QQmlJS::AST::Visitor are required to do so.
Change-Id: I47d55d25d7c4dd3f826b3cd24a29fc4287d113c8
Reviewed-by: Liang Qi <liang.qi@qt.io>
Moving examples from qtdeclarative to qtdoc broke tests that operate
on the example sources. This patch duplicates those tests and the
documentation snippets that serve as test data to reestablish test
coverage.
Task-number: QTBUG-69383
Change-Id: I31fd1729f794081a11844be9c27ed4f9a8a5ce73
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>