Commit Graph

30183 Commits

Author SHA1 Message Date
Olivier De Cannière 6cca731f3e UrlObject: Properly encode the url search components
The href() and search() functions now return properly encoded search
components.

Tests were added to tst_urlobject.cpp to verify this.

Pick-to: 6.5
Fixes: QTBUG-110454
Change-Id: I3d6485eeeedbd5ba5423cdd42d9c17669ca4bd62
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-09 13:02:01 +01:00
Olivier De Cannière d2c8fe712a UrlObject: Fix setting searchParams not modifying the url's search field
Previously, setting the search params via the searchParams.set() method
did not change the url's search field. The searchParams object now has a
back pointer to the urlObject it belongs to. Whenever a search param is
set, the url search field is also updated.

The tst_qv4urlobject test was also added to check proper behavior.

Pick-to: 6.5
Task-number: QTBUG-110454
Change-Id: I3b0e843395da8a0e5aedcf71895981f68560d9c6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-09 13:02:01 +01:00
Santhosh Kumar 2af8743aab Fix mouse inside MouseArea (containsMouse) for press event
In MouseArea, containsMouse (mouse inside MouseArea) flag is enabled for
press event irrespective of whether its accepted or not. This creates
containsMouse to be enabled always for this corresponding item leaving
no option to reset.

To fix this issue, containsMouse flag is enabled only if the press
event is accepted for mouse handler.

Fixes: QTBUG-110594
Pick-to: 6.4 6.5
Change-Id: Ibb0e89529ccebc3063330c22b8b3501b2917d78f
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-09 09:05:46 +00:00
Tasuku Suzuki 31722ff2ff Fix build with -no-feature-texthtmlparser
Pick-to: 6.5
Change-Id: Icdfe5950e5f8f7f03aba36bd1058d0cd6c6df7ac
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-02-08 23:00:16 +00:00
Doris Verria 75bb351462 iOS Style: Add Dialog and DialogButtonBox
Pick-to: 6.5
Change-Id: I6899b1438af43a822f3f212a6fd928200c893ee3
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-09 00:00:16 +01:00
Doris Verria 4a9be82a38 tst_dialog: Fix testing for implicitWidth and wait for enter transitions
- The Dialog’s implicitWidth is set to the max between the header’s,
footer’s, and background’s implicitWidth. So, when testing that the
dialog’s implicitWidth is equal to that of the header, we should first
make sure that the IW of the background and footer is smaller.

- Wait for all enter transitions to finish before assuming that the
dialog is opened.

Pick-to: 6.4 6.5
Change-Id: I803db9664ad46a83dbe6b47c53448530c30d6150
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-09 00:00:16 +01:00
Ulf Hermann f69b6f0940 QML: Fortify qmlExecuteDeferred some more
I don't know how to trigger this, but a recent crash report from the CI
shows that we can get there without a valid engine.

Pick-to: 6.5
Change-Id: I9f17894da82b8e7eab88181c96dfa8eaf7795523
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 21:15:12 +01:00
Laszlo Agocs ac5bbbe4ac Have a way to always use an elapsed time based animation driver
Set QSG_USE_SIMPLE_ANIMATION_DRIVER=1 to get an alternative animation
driver. (applies when using the threaded render loop) This behaves like
the fallback mode (TimerMode) of the other one: it advances based on
whatever delta the QElapsedTimer reports. Thus there is no dependency
on vsync-based throttling whatsoever, and a big chunk of the workaround
infrastructure (such as needing to fall back to QTimer with multiple
windows) is simply not needed.

It should be evaluated going forward if this should become the default.
For now, in order to avoid any surprises, it is only opt-in.

Pick-to: 6.5
Task-number: QTBUG-84328
Change-Id: I8e466caa08ba5f0471d767b1600d198ba787d8e5
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-02-08 20:14:43 +00:00
Ulf Hermann 403f4117e2 qmllint: Uncruftify FixSuggestion
In this form we can expose it in QQmlSA.

Pick-to: 6.5
Task-number: QTBUG-110834
Change-Id: Ieb0cf31b6e86379c0d80f89bc6c63b129f269798
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 21:14:39 +01:00
Fabian Kosmale e3831511de Remove superfluous Q_DECLARE_METATYPE
It breaks unity builds, and declaring metatypes outside of the actual
class that uses them is generally a bad idea.

Pick-to: 6.5
Change-Id: I0106667f6075aabc2fa3c9e5271d21b64f41e4c1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-08 20:14:19 +00:00
Fabian Kosmale 4ecdd90e08 qmlls: Only build if language server exists
Change-Id: If3bb16ab559e425d98d6dc8957f70536f37660ee
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-02-08 21:14:17 +01:00
Jan Arve Sæther 10c33ed110 bin/qml: Fix broken handling of --translation commandline argument
The QTranslator was destructed right after it was loaded because it was
inside a scope

Pick-to: 6.5
Change-Id: I8c9d1604652f18f7d15aa7a0045f580cd8a25063
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 15:07:51 +01:00
Santhosh Kumar f1fa9e5da2 Fix qml warnings for qquickmousearea test cases
Triggering quickmousearea test suite generates qml warnings and its due
to change in qt6 qml compiler. These warnings has been fixed in this
patchset.

Pick-to: 6.5
Change-Id: I38ba666c4ae77f1e82292ab748ca3f4bb6f34d63
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-08 13:49:04 +00:00
Kaj Grönholm 8ce94e0dc9 Add note about the source item usage
Try to explain how the usage of SourceProxy may affect the appearance
of the MultiEffect source item.

Task-number: QTBUG-109555
Pick-to: 6.5
Change-Id: I5ec6fd686aa5c870c163e2ea7e6d56b82008c5ed
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2023-02-08 15:03:36 +02:00
Ulf Hermann fc8bb0ff5d Doc: Update QQmlContext documentation to discourage context properties
The snippets showing the use of setContextProperty() are intentionally
removed. You should not do such a thing.

Pick-to: 6.5
Fixes: QTBUG-106030
Change-Id: I1c5c217630aee8dd6e44f9f244b9ef2a8d2ef290
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-08 08:26:17 +01:00
Eskil Abrahamsen Blomfeldt f70844868a Avoid crash updating source of shader-less effect
When a ShaderEffect did not have any shaders, we would
register a "fake" bindPoint for the 'source' property with
bindPoint 0. However, when actually linking the default
shader program, the actual bindPoint is 1 (also matches
what is in shadereffect.frag).

When the property corresponding to the source updated, we
would thus register an update for binding point 0. The
initial value for binding point 1, from when the shader
effect was loaded, would never be overwritten and when we
iterated over the variables later and tried to cast do a
qobject_cast on the (initial, now dangling) pointer stored
for binding point 1, it would crash.

Pick-to: 6.2 6.4 6.5
Fixes: QTBUG-110111
Change-Id: I96c3e81908db8cce682b5447800fcb7a3fe5e0b9
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-02-08 07:26:17 +00:00
Kaj Grönholm a8f353747c Minor fixes to MultiEffect
Fix the blur items size to next divisible by 16 (like the comment says)
instead of 32. Use QVector4D for colorizationColor and shadowColor so
their alpha is set correctly.

Pick-to: 6.5
Change-Id: I948bdd6c0a792c2fd90a58b69514478f2d965f41
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2023-02-08 07:22:34 +02:00
Kaj Grönholm 3b5aea849f Add custom MultiEffect into testbed example
Add CustomMultiEffect QQEM project and the effect exported from it into
the MultiEffect testbed example. This can be used to validate the QQEM
MultiEffect node compatibility with the Qt Quick MultiEffect.

Task-number: QTBUG-109740
Pick-to: 6.5
Change-Id: I596bf54316ab70b85b1ace33a433a4109c43b239
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2023-02-08 07:22:29 +02:00
Shawn Rutledge 984825958c Clean up and slightly optimize QQuickFlipablePrivate::updateSide()
Change-Id: Iaaf3c6f642f25ff72eea2ae2e7324aac036b4e4b
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-08 00:44:52 +01:00
JiDe Zhang 036b6159ed Flipable: switch sides at 90 degrees regardless of camera distance
QQuickRotation::applyTo(QMatrix4x4 *matrix) uses
QMatrix4x4::projectedRotate() to apply rotation in pseudo-3D.
QQuickFlipablePrivate::updateSide() was previously applying
QQuickRotation to QTransform to decide which side should be showing;
but when using QTransform::map(QPointF) to get the position of the
transformed point, it is affected by the distance-to-plane value.
QMatrix4x4::projectedRotate() uses 1024 as distance from "camera" to
plane; so if the items on the plane are too large, some coordinates on
the plane may be behind the camera during rotation, which could cause
QQuickFlipable to mistakenly think that the current side has become
QQuickFlipable::Back.

Now we directly calculate the side of QQuickFlipable in 3D space rather
than performing projection, to avoid being affected by the camera
distance value. We use QMatrix4x4 instead of QTransform.

Fixes: QTBUG-75954
Pick-to: 6.5 6.4 6.2
Change-Id: Ibb08f6f6de690f5b56c3130a1f7b09beb250c807
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-08 07:44:52 +08:00
Shawn Rutledge 8dbb9ca52a QQuickItemPrivate::itemToParentTransform: pass transform by pointer
https://wiki.qt.io/API_Design_Principles#Pointers_vs._References
says we prefer pointers for out-parameters because it's clearer at the
call site that the argument will be modified. Amends
bfb3c424ab

As a drive-by, re-indented nearby internal doc comments.

Change-Id: Id7f377e94e6917185fc26d7ac7c564841d45a257
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Reviewed-by: JiDe Zhang <zhangjide@uniontech.com>
2023-02-08 00:44:52 +01:00
Ulf Hermann 5956035813 qmlcompiler: Rephrase the "not found" message
If we can't find a member, we don't know whether it's a property.

Pick-to: 6.5
Task-number: QTBUG-110933
Change-Id: Ie7d170f0e1967ac121630afe73e46c514b01e821
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 22:00:10 +01:00
Ulf Hermann 26f84f5e58 qmlcompiler: Deduplicate instructionManipulatesContext()
We use it in three different compile passes, so it should be a member of
QQmlJSCompilePass.

Pick-to: 6.5
Change-Id: Ibc46ceb7ab05839b0a573c8ab3ee2acf4a6de154
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 22:00:05 +01:00
Sami Shalayel 3a985babf9 qmlls: move into own private static library
Qmlls was completely implemented in the ./tools directory, which made
its code complicated to test and try out. Also, it required some "dirty"
hacks in the actual tests (including files from others targets to be
able to use them) and made testing new features for qmlls more
complicated.

To remedy this, the qmlls code was split into a tool (qmlls) and
a static library (QmlLSPrivate). The tool only contains
tools/qmlls/qmllanguageservertool.cpp (which has the qmlls main method)
and links to QmlLSPrivate, that contains all the other qmlls-related
code. This way, the tests can also link to QmlLSPrivate and test out
individual functions there without needing to include files from other
targets.

Also rename all the files to make syncqt happy (adding "_p" to headers
and prepending "q" to headers and files and includeguards), and use
QString::fromUtf8() to silence the QString()-constructor deprecation
warnings.

On the way, move tools/shared/qqmltoolingsettings.* into its own private
static library, instead of recompiling it for each tool that requires
it. Move the qqmltoolingsettings stuff into the qt namespace to be
usable.

Also, add qmlls as a dependency to the qmlls tests to avoid testing an
outdated qmlls-binary.

This commit prepares qmlls's code to implement the go-to and
find-usages features.

Task-number: QTBUG-109006
Change-Id: I91eed689c68a0c53fb88006de335b0f852cc1a83
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 19:23:13 +01:00
Laszlo Agocs 36f0cb435e Bring QSurfaceFormat configurability to qmlscene's level in the qml tool
Restore the --transparent and --multisample options.  Also make the
default QSurfaceFormat setting universal (no need to tie it to the
option of forcing a core profile context), and prevent the warning
that is printed when the default surfaceformat is changed after the
application is already created with AA_ShareOpenGLContexts set. This
involves having to handle the relevant arguments manually early on,
not through QCommandLineParser.

All this matches the qmlscene behavior.

NB qmlscene requests 16 samples with --multisample which is completely
pointless in practice. Use the common 4 now.

Change-Id: I671e5f22846a715675ea936bb7cf2a31a849dc28
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-02-07 19:23:13 +01:00
Paul Olav Tvete 37f2c169a5 qml tool: Disable shader caching by default
When shaders are generated dynamically, such as with QtQuick3D, cached
shaders may get out of date if the QML file is changed.

Change-Id: I2c5484765e30da5c13fd175a9fcbad2473d55e62
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-02-07 18:23:13 +00:00
Ulf Hermann 11bc79d7c6 QML: Treat long and ulong like other numbers
They should either be the same size as int/uint or the same size as
longlong/ulonglong, but for some reason we get them as separate types.

Pick-to: 6.5
Fixes: QTBUG-110767
Change-Id: I4c5826cfe6108e6f9722e6b3443bde13b2141b04
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-07 19:23:13 +01:00
Ulf Hermann 7e51a3fd91 Polish error messages for import failures
If you have a loop in your qmldir imports, you get an abhorrent amount
of spam terminating with a misformatted message. Let's limit the total
length of the message and fix the formatting.

Amends commit c7c4c8f088.
Amends commit a0290dcc53.

Pick-to: 6.5
Fixes: QTBUG-110808
Change-Id: I46fa944eacbca456964d1a98fe029f6d550c0a8c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 19:23:13 +01:00
Ulf Hermann 8f60ffc42b QmlCompiler: Consider attached types for "unused import" detection
Pick-to: 6.5
Fixes: QTBUG-110833
Change-Id: Ie766c957a9ebeaea808fdc6904a1caea0e4cb849
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-02-07 19:23:12 +01:00
Ulf Hermann 5c594515f6 qmllint: Provide import paths and resource files when linting modules
Those are just as important for modules as for single files.

Pick-to: 6.5
Change-Id: I201d62c61988abc2dfba6300a1cfc355203fec75
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2023-02-07 19:23:12 +01:00
Ulf Hermann d15efae7e1 CMake: Fix output of internal QML types
We only need one line for those. For now we cannot add the version
information because that was forgotten when the qmldir parser was
written.

Pick-to: 6.5
Fixes: QTBUG-110815
Change-Id: Ic922caa6a339a51b905b493e4638ee4d8f737fe6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 19:23:12 +01:00
Ulf Hermann 577e1dea25 qmldir parser: Handle internal types with versions
There is no reason why internal types cannot have versions.

Pick-to: 6.5
Task-number: QTBUG-110815
Change-Id: I7fa9790dc64dd785fc08ec7b22f68b4f961fdb00
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-07 19:23:12 +01:00
Friedemann Kleint be81599723 QtQuick: Fix conflicting definition of MinimumFlickVelocity in CMake Unity (Jumbo) builds
Move constant MinimumFlickVelocity to a common header and prefix it
to avoid clashes in static builds.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ic4178a3e7c1ea930a711c4e04f26edda19ad3efb
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-02-07 19:23:12 +01:00
Friedemann Kleint 8ecf9441c3 QtQuick: Fix conflicting definitions of qsg_leak_check in CMake Unity (Jumbo) builds
Make it a properly prefixed global variable.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: Ia09072bf6603c3566484f5361b03f1d3a2164be3
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-02-07 19:23:12 +01:00
Friedemann Kleint cee1b1ac02 QtQuickTemplates: Disambiguate static variables
They cause clashes in CMake Unity (Jumbo) builds.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I995892bf40e3261042d758bfa7fc244e17010460
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-07 19:23:12 +01:00
Friedemann Kleint 81bad2a9b2 QtQuickControls: Disambiguate static constants
They cause clashes in CMake Unity (Jumbo) builds.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I6e7fbb1d3f33eda50f55257b6df5aaf47170eb57
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-07 19:23:12 +01:00
Alexandru Croitor 1f207f4a97 CMake: Speed up configuration of qml modules with newer CMake
When using CMake 3.21 use the new builtin command for copying files if
they are different.

On my macbook pro 2019, according to cmake's 3.25 profiling,
qt6_target_qml_sources execution speed goes down from 1072ms to 122ms
when processing the imagine style qml module.

Pick-to: 6.5
Change-Id: I46c51d03bc16cadacb64c011fdf9899a88332052
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2023-02-07 14:07:27 +01:00
Jarkko Koivikko 6ab7e33b05 quicktextinput: Update IM state after clearing selection with IM event
Virtual keyboard uses quick text input as shadow input control attached
on top of the keyboard when the actual input control is obscured by the
keyboard. The shadow input is synchronized by the IM update events sent
by the actual input control.

When the user makes selection or moves cursor on the shadow input
control, the change is synchronized to actual input control with input
method event (QInputMethodEvent::Selection). This all works, except
when there is a selection and the cursor is clicked. The expected
outcome is that the selection is cleared, and it is, but it was not
reported back to input method.

Fix the issue by sending the update in case the selection is cleared.

Pick-to: 6.5 6.4
Change-Id: Ieabc9ee97ad9fe6154d46f302314e3ebdfd10de2
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2023-02-06 12:45:07 +02:00
Noah Davis 75fa992146 SpinBox: consistently call setPressed before and after increase/decrease
This change just makes the behavior a bit more consistent so that
developers can do things like `stepSize: down.pressed ? downStepSize :
upStepSize`.

Pick-to: 6.5 6.4
Change-Id: I4210f31eaf0e5eda6dc83b369346e16861304fb8
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-05 00:33:20 +08:00
Shawn Rutledge 2b6eb1a51d MultiPointTouchArea: rename signal arguments in Qt 7; test with formals
This will be a behavior change for anyone who is still relying on
"touchPoints" to be the signal argument rather than the MPTA property;
so let's put it off until Qt 7 and have a reminder in docs in the
meantime.

Fix autotests to avoid depending on this (just as users should).

[ChangeLog][QtQuick][MultiPointTouchArea] As a reminder: you should
always use formal parameters when writing a signal handler that depends
on an argument, such as MultiPointTouchArea.onPressed, onUpdated,
onReleased, or onCanceled. It gives you an opportunity to name the
argument, to avoid confusion with the touchPoints property, and will
avoid behavior changes if we rename the argument in a future version.

Pick-to: 6.5
Fixes: QTBUG-110906
Change-Id: Ie78dc539f7f6cac660f2e90bf3e4665afed3e3f7
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-03 23:42:18 +01:00
Friedemann Kleint 053394edab QtQuick: Fix conflicting definition of ProtectedLayoutAccessor in CMake Unity (Jumbo) builds
Move it to qquicktextdocument_p.h in namespace QtPrivate.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I7b0482e0dc052dc431c1264ff27423957d20b219
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 21:29:45 +01:00
Friedemann Kleint c279669c72 QtQuick: Fix conflicting definitions in qsgbasicinternalimagenode.cpp in CMake Unity (Jumbo) builds
Rename struct and helper function.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I131ae2200981c4e4aace6918940b772af4cb6466
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-02-03 15:35:04 +01:00
Friedemann Kleint 6fea0cd57e QtQuick: Fix warnings about fields anonymous namespaces
Remove anonymous namespaces, fixing warnings like:
qsgareaallocator.cpp:27:8: warning: QSGAreaAllocatorNode has a field QSGAreaAllocatorNode::splitType whose type uses the anonymous namespace [-Wsubobject-linkage]

which occur in CMake Unity (Jumbo) builds.

Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I71e4ec5f89bbf4220efd9a8ba819ee5fb39b95e8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-02-03 15:34:53 +01:00
Friedemann Kleint aeec621865 Examples: Add missing include guards
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I968865958770f6282ab6f79dc9b2becf4f7795af
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 15:33:07 +01:00
Friedemann Kleint a2e1bf6615 QtQuick: Fix conflicting definitions of options in CMake Unity (Jumbo) builds
Pick-to: 6.5
Task-number: QTBUG-109394
Change-Id: I576e61990dee9e479321b1a4b0eb49cafb030acc
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 15:31:04 +01:00
Sze Howe Koh 27878fdef7 Doc: Don't auto-close popup in Attached Style Properties Example
So that users can see the theme change while the popup is open

Change-Id: I9cac09badc04c5dcace45dadaa9282900b093e17
Pick-to: 6.5
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-03 22:23:40 +08:00
Sze Howe Koh ecdbc277ab Doc: Fix compile-time warnings in Attached Style Properties Example
Fixes: QTBUG-110831
Pick-to: 6.5
Change-Id: Iee931d5595cab1c6fb40b5ddff0596ce6195788a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-03 22:23:33 +08:00
Ulf Hermann c428ca6326 Doc: Recommend putting QML files in the same directory as their modules
Otherwise things quickly get messy.

Pick-to: 6.5
Task-number: QTBUG-106929
Change-Id: I9426f3ad3766cad5b133e8ef063696873bb9b7c9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 14:32:27 +01:00
Ulf Hermann b8c6c3ea0f QmlCompiler: Add hint about generalized grouped properties
If a property cannot be found but there are immediate properties in the
surrounding type, that indicates that the construct in question may be
phrased using generalized grouped properties.

Pick-to: 6.5
Fixes: QTBUG-105251
Change-Id: I107132294ba0ca56ff522fc29e7a1972553390bd
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 14:31:51 +01:00
Ulf Hermann 236439de7b qmllint: Add warning about PropertyChanges using custom parser
You should use the id-based generalized group form.

Pick-to: 6.5
Fixes: QTBUG-105251
Change-Id: I42edfb03059d3e8c92bfb3c311bf1ed1af7cf70e
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-02-03 14:31:38 +01:00