Commit Graph

11 Commits

Author SHA1 Message Date
Marc Mutz 5fbb714cc1 Mark the module as free of Q_FOREACH, except where it isn't
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>
2023-08-17 18:08:04 +02:00
Mahmoud Badri c77719ff5d Add FX & Material showroom demo
Fixes: QTBUG-113477
Pick-to: 6.5.2
Change-Id: I2cdd68027224516b6e6ddacad99d06b6a4dc1ba0
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
2023-06-19 15:15:11 +03:00
Kimmo Leppälä 117382f261 Remove PhotoViewer example
Fixes: QTBUG-113593
Change-Id: Idafd79a140067fac9c9f27440f4f43453e2e2ddf
Pick-to: 6.5
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-05-16 20:27:36 +03:00
Kimmo Leppälä 02efcba73d Move robotarm example from quick3d to qtdoc
Pick-to: 6.5
Change-Id: Iac113bc7ed773f291ef09ebe144e1de1e0e58136
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-05-09 18:37:33 +02:00
Marc Mutz ce35a5ad39 Port from container::count() and length() to size()
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>
2022-10-05 14:59:19 +02:00
Konrad Kujawa 91e567ba53 Qt Quick UI for the RESTful Address Book
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>
2022-09-07 12:58:06 +02:00
Lucie Gérard 6f57506953 Use SPDX license identifiers
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>
2022-06-07 18:23:52 +02:00
Assam Boudjelthia dd1ab281db Android: Skip tst_examples::sgexamples until it uses resources properly
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>
2022-05-20 12:05:58 +03:00
Volker Hilsheimer 745e418292 Fix compile warning: QLibraryInfo::path instead of location
Change-Id: Ic1ad96c94f74000931ad4dc80d55db71f2850bfc
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2020-09-26 14:35:55 +02:00
Liang Qi 754f008641 examples: Rename setPersistentOpenGLContext
Align with qtdeclarative 6f4fdce07fa2e75e09dcc90a76ea6d741fb58e74.

Change-Id: I177e060c0f1a17ff807e4baeda673ebbf017c719
Reviewed-by: Liang Qi <liang.qi@qt.io>
2020-06-11 18:13:59 +02:00
Paul Wicking c42a5dfb51 Duplicate tests that use examples from qtdeclarative
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>
2018-07-16 13:12:58 +00:00