aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update dependencies on 'tqtc/lts-6.2-opensource' in qt/tqtc-qtdeclarativev6.2.8-lts-lgpl6.2Qt Submodule Update Bot2024-03-261-4/+4
| | | | | Change-Id: Iea77c0713e97dfaf8954134f78a8d07f804ed154 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
* Merge remote-tracking branch 'origin/tqtc/lts-6.2.8' into ↵Tarja Sundqvist2024-02-20178-473/+3436
|\ | | | | | | | | | | | | | | | | tqtc/lts-6.2-opensource Conflicts solved in a file: dependencies.yaml Change-Id: Ib4083daa41a689b937d2aeb522e93e3aab0be1c4
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-291-4/+4
| | | | | | | | | | Change-Id: I8dc8ae944d2a6bcd48643cc76aeba1300190db6b Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-271-4/+4
| | | | | | | | | | Change-Id: I10b5c28f70d87aafa34490324efb4c2681be5163 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-221-4/+4
| | | | | | | | | | Change-Id: I805551dbc375fe076563dc13d1f111437cbfca40 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * qmltyperegistrar: Do not guess types with upper case namesUlf Hermann2023-03-213-5/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We generally need to guess value types since there are value types without metaobjects of their own, such as QRectF and QSizeF. However, if they have upper case element names, they are clearly not in that category. Guessing those as value types will make further tools produce follow-up mistakes. Fixes: QTBUG-111986 Change-Id: Ic15ef8c726eb3913c87eb4a300794f321f59fafa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit c2fd73b516f6021f0ebb9f5cfd4de79f3f437f51) Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
| * doc: Fix native texture interface header nameLaszlo Agocs2023-03-201-0/+4
| | | | | | | | | | | | | | | | Fixes: QTBUG-95807 Change-Id: I0676fdb9bd7e8312d736bf0f4eb6775415d86296 Reviewed-by: Christian Strømme <christian.stromme@qt.io> (cherry picked from commit 3bc05bf7f422fccd8c29bd1eb1376c37264d31ee) Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
| * Doc: add \since to Text's renderTypeQuality propertyMitch Curtis2023-03-201-0/+1
| | | | | | | | | | | | | | | | | | Amends cbbbfe3bff29d8db84771e07ac6f16209b0969d1. Change-Id: If1247a4f2d347f5c8b4993e24b04736db45df80d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 18b4a5ceefc2d250013bb6feefa34bd2e120bd55) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-161-4/+4
| | | | | | | | | | Change-Id: I13e82c0b4883b1758e3679822ee096725c3edd16 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * CMake: Add docs for NO_PLUGIN and clarify NO_GENERATE_PLUGIN_SOURCEUlf Hermann2023-03-161-1/+16
| | | | | | | | | | | | | | | | Fixes: QTBUG-111577 Change-Id: I7f259c3b710d0be16844d159e3204ee2e51f2a06 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> (cherry picked from commit f0f274e354820affbad5331868191824c834a99d)
| * Revert "Blacklist tst_TapHandler::gesturePolicyDragWithinBounds on Android"Assam Boudjelthia2023-03-161-4/+0
| | | | | | | | | | | | | | | | | | This reverts commit 24fedb7cd52a920ccdb0878e1547a30f71c949bd. Reason for revert: the test gesturePolicyDragWithinBounds doesn't exist in 6.2 Change-Id: I66859ad52f1864643f86dc4ad54d44c95b3d7a0e Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| * JIT: Add missing {STORE|LOAD}_ACC() to CreateCallContextUlf Hermann2023-03-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We cannot assume anything about the accumulator register after calling PushCallContext::call(). Also add a note about not needing to re-load the accumulator on ThrowException. Fixes: QTBUG-111935 Change-Id: I7196585e1d2697c215f4fe87d8d7ac9b98b622a3 Reviewed-by: <carl@carlschwan.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 15ec024152a1d1d99a4934f7b2408e7af7b2552a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * doc: Update QML eventPoint; fix GrabTransition linkShawn Rutledge2023-03-155-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amends outdated stuff from 507efe5a8a2390813fb620a91b0b3b6b383f599d and c248a32fe69dfe1c685105d0c6aeaeb15d7ba29f. "eventPoint" should now always link to docs added in b43a873264d012dc0a0e574ea53335a40af8aa38. Replace the phrase "event point" with a link to the QML eventPoint value type. QPointingDevice is called PointerDevice in QML, so the GrabTransition enum ought to be found in those docs, in theory, for use in the PointerHandler::grabChanged doc. Task-number: QTBUG-102160 Task-number: QTBUG-104761 Change-Id: I5d1a8dedd9d98e6dee3fbca457aa38f42ea7bfb1 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 60ebb044c87c1e5cf8e0b4a7f135aac283203122) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * doc: Customize and update docs for PointHandlerShawn Rutledge2023-03-157-5/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many of the inherited docs were inappropriate or insufficiently specific to PointHandler. Now we have more snippets with more ideas for how it can be used. As a drive-by, fix a typo in the docs for PointerDeviceHandler::acceptedPointerTypes and add a link to the new PointerDevice page added in e283c05af745210d4a1f6c0aa9c33bf4da23a1e0 Fixes: QTBUG-74020 Fixes: QTBUG-106878 Change-Id: I028e1577ac5d4ef0b927c94259d6ab25b6028885 Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit 4c6d0b2bf09329dd8b036761f8f2924f54af3a07) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * Document the Pointer Handlers exampleShawn Rutledge2023-03-1520-8/+198
| | | | | | | | | | | | | | | | | | | | | | | | Animated gifs were captured with byzanz-record, then converted to webp: gif2webp -lossy -min_size -q 40 -m 6 -mt -metadata none in.gif -o out.webp Fixes: QTBUG-96915 Change-Id: Iee2f4ef774de7862d93c7e4cdf7b2b5e0553bec4 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit 024794255d7d1df10fa5239cb70212c9703ff60f) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * doc: Add snippets and animations illustrating TapHandler.GesturePolicyShawn Rutledge2023-03-158-29/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | People are constantly confused by GesturePolicy and its default value, so we really need a "glanceable" reference in the docs to show the differences between use cases. Also clarify the pitfalls with the default DragThreshold value. We switch from the \value tag to a 2-column \table because the \image would otherwise break the table, and also because it saves space and acts as a meaningful reminder to have the animation right under the enum value that is being documented. Task-number: QTBUG-70397 Task-number: QTBUG-73262 Task-number: QTBUG-100534 Task-number: QTBUG-107239 Task-number: QTBUG-111310 Change-Id: I1ff45f58a8a8edf55f4a8696d881aa9e0bedcfe3 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit a6e196ce9cd327df53ef9b9db3020f7775ee1754) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * doc: Add qml PointerDevice, pointingDeviceUniqueId and PointerEventShawn Rutledge2023-03-151-0/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | We need a link target for the GrabTransition enum argument in the PointerHandler::grabChanged QML signal doc, and a few other places. Fix warnings about failing to link in a couple of places. Fixes: QTBUG-102160 Task-number: QTBUG-104761 Change-Id: I92a544d363a6ff9e990c7d56c110bc5db1202bb3 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit e283c05af745210d4a1f6c0aa9c33bf4da23a1e0) Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-131-4/+4
| | | | | | | | | | Change-Id: I31c18e50e4f5e15fff7cc94d83ad6a94423f56e8 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * tst_qquickcanvasitem: wait for canvas before creating a contextShawn Rutledge2023-03-1118-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | Hopefully this reduces flakiness in CI, following the suggestion from the error message: Unable to use getContext() at this time, please wait for available: true Task-number: QTBUG-41043 Change-Id: I3710163cb197170e590f8fd7d188fa62f32ea649 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 223f1d45cc0ee776769e8905979370b1d1be21b4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Fix multiple object creation in LoaderSanthosh Kumar2023-03-102-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QML Loader creates multiple object of same component during initial loading, if sourceComponent is assigned within state configuration and it evaluates to be true. This happens due to the effect of evaluating stage change (here in this case, setting loader source component) during component completion which internally creates component object and makes loader status be ready, even before Loader instantiates object. This patch adds a guard to check loader status and avoids object creation if status is already ready. Fixes: QTBUG-111559 Change-Id: I6c3456cd3bc35a717c139fbd3670c305304f480a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 492dc98a288763d3d026e9557ffadc018cede350) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-03-101-4/+4
| | | | | | | | | | Change-Id: I5a919703ec6a9a55b620f3a02c6f6a28a891e71a Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Canvas test_url: wait until image is loadedShawn Rutledge2023-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The loadImages() function has been waiting already since 6318560eca7e3247a63620ce24d2d7e291dd5d84); but test_url() was not waiting, which could result in CI flakiness. Anyway tryVerify is better than waiting 200ms every time it's slow, and will give us a failure message about isImageLoaded() if it fails. Task-number: QTBUG-41043 Change-Id: I0bb552d3452d85342d2ffa3b6becded5b01177a8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit e37d2dac8ae680d36a531f0388ec3216e5dfb366) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Doc: fix links in contains/containmentMask docsMitch Curtis2023-03-091-4/+4
| | | | | | | | | | | | | | Change-Id: Iae701dec938c5f126ebf90953af0733de775b385 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit ee3d11f70bf7d5d7f3b0f4f0b531a0ed2a20e721) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * openvg: Add missing breakKai Uwe Broulik2023-03-071-0/+1
| | | | | | | | | | | | | | | | | | Fixes unintentional fall-through. Change-Id: Iab82677c5f81d16fefb3db04e10601a98cb81c67 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit 27703167caedb38e2c2e057c9211b6cb047230dd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Fix scoping of index in SwipeDelegate snippetDaniel Smith2023-03-031-2/+1
| | | | | | | | | | | | | | Fixes: QTBUG-111566 Change-Id: Idf3d5fd140f2b69215844ff25b24bfc2abfc14b1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 925c6b06b17e78f125cc5119efe702774298b154)
| * ListView: Mention section's support for required propertiesFabian Kosmale2023-03-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | It was used in the code snippet, but we didn't explain so far why it was there. Change-Id: I53005d897f4a3732b7707c7cc0e88f2842ca7433 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> (cherry picked from commit a703701394820fcfffb544a5bf7c464410cdc0a2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * QQmlEngine: Improve import path method documentationFabian Kosmale2023-03-021-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Instead of (partially) repeating the defaults listed in "QML Import Path", link to that section. Moreover, warn that setImportPath doesn't preserve the default paths. Task-number: QTBUG-109799 Change-Id: I6c2acb6efd1bd0984b3b540a75c7bced44127050 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 2d8b15cc1c71f0720f55f681732a608700696319) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * QtQml: Always throw when requesting an enum from an invalid singletonUlf Hermann2023-03-021-1/+6
| | | | | | | | | | | | | | | | | | | | | | The interpreter does this and so should the enum lookup adapter for generated C++ code. Fixes: QTBUG-109816 Change-Id: I576480c3ca808743ddc0ceaf2f0bd8a1de776a41 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 8cbb30a650c2a2c8fb4b8cc39f347ff370850e74)
| * doc: remove docs for PinchHandler.acceptedButtonsShawn Rutledge2023-03-021-0/+7
| | | | | | | | | | | | | | | | | | Mouse buttons are irrelevant to PinchHandler, of course. Change-Id: Idfe65d3408ff3a33314979174a886f3e51f2eb7b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 69fa61a11f4689246e8d5ce8edfbeae41dfa08b2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * doc: remove docs for HoverHandler.dragThresholdShawn Rutledge2023-03-021-0/+7
| | | | | | | | | | | | | | | | | | | | Like acceptedButtons, HoverHandler.dragThreshold is irrelevant. Task-number: QTBUG-95395 Change-Id: I059e99449cff946b2caa945022b1f4bd4d2f845b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 17e8e21511ce3f5a2cc764655f12355454ae0522) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Doc: mention the order in which top-level transition animations are runMitch Curtis2023-03-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | This is mentioned in the documentation for the transitions property and in "Playing Animations in Parallel or in Sequence", but is easy to miss if you only read the detailed description. It's an important detail that users should know, so add it. Change-Id: I6f074506ddc8a7b02e6114741d9fadef48cdc8ab Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 0bb5a91d8d9b227dccd93d46b97668c14e20101d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-271-4/+4
| | | | | | | | | | Change-Id: I44a454cdae60d88af4c662b79d9e3cd06e90bbab Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * QtQml: Fix coercion of undefined to float and doubleUlf Hermann2023-02-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It should result in NaN, not in 0. [ChangeLog][QtQml][Important Behavior Changes] Converting a JavaScript value to a double or float now always assumes JavaScript type coercion semantics. In particular, converting a value that is not actually a number now results in NaN where it previously sometimes resulted in 0. Fixes: QTBUG-111179 Change-Id: If24444ae9014c8972761c565a6920f06699e485c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit b9834e0ee9f086add6dd8a42e5cb40f87f91756b)
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-211-4/+4
| | | | | | | | | | Change-Id: Icad96978a8344cc70c5dca99922b936ad785eb3c Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Use SequentialAnimation.loops in FlashAnimation in handlers exampleShawn Rutledge2023-02-211-7/+1
| | | | | | | | | | | | | | | | | | It looks less tedious. Amends 8503f884bbdb50c4bebc8f8a9fce05275b0612b1 Change-Id: I85690e6a8ceac4ebec1c00bcbbf6a81108096e6c Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 40e2811843b3dc414d48f2221e2dee888b448b9b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * doc: Add the handlerPoint.device propertyShawn Rutledge2023-02-171-0/+7
| | | | | | | | | | | | | | | | | | | | | | Amends a1c91787264f6f535b5cf094b57ee53058856df4 Task-number: QTBUG-76381 Change-Id: I7fdd15abbe15805815f5d2b2fc298501e1ab34d7 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 6215a53f29a6204332799450c5f21fc151e69c78) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * QQmlMetaType: Clear property caches on qmlClearTypeRegistrationsUlf Hermann2023-02-172-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | Otherwise we may retain dangling pointers referencing invalid property caches. Some metaobjects are created on the heap. If the memory manager decides to re-use the heap space for new metaobjects, we can retrieve the invalid property caches. Task-number: QTBUG-110933 Change-Id: Ic00bb852151bcf58ba6ae798a6bf2cea686a9e10 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 6937f2e50dd60c58350a464eb83ba9d11c7146f9)
| * Defining QML Types from C++: Add CMake documentationFabian Kosmale2023-02-161-20/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | So far, we only documented the qmake workflow. Adjust the docs to mention how the same can be achieved in CMake. As a drive-by, use a versionless import in the QML example code. Fixes: QTBUG-107902 Change-Id: I08ac1262d0d93572077ec86be3b02ce1524bf52a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 31262074fb3a64fd4b281b03da4032733accee4c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-161-4/+4
| | | | | | | | | | Change-Id: I8a28949a711e45027ffc1b760977a636fc15dde0 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Doc: Mention QDS and UI files in Best PracticesLeena Miettinen2023-02-141-3/+24
| | | | | | | | | | | | | | | | | | | | | | Developers can easily break QDS .ui.qml files if they edit them as code. Link to the description of UI files in QDS Manual. Fixes: QTBUG-110354 Change-Id: Id5dc0e9fd420e0e4807a39d4f8d7d121e5137636 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit 5fabb872e0041aaf134b33e140d8f8512c31455b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * QML: Invalidate any existing cache files when saving a CU to diskUlf Hermann2023-02-114-2/+128
| | | | | | | | | | | | | | | | | | | | | | Otherwise we just re-load the old cache file next time. That's clearly not intended. Fixes: QTBUG-111078 Change-Id: Ia65b46880eca2b6e8c4792a09f20716125beada3 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 0a5eff09203ebb2547431de689d9c07e6c97f636) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-101-4/+4
| | | | | | | | | | Change-Id: Idae763007475b450f178084cc569801255067100 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Avoid crash updating source of shader-less effectEskil Abrahamsen Blomfeldt2023-02-082-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Fixes: QTBUG-110111 Change-Id: I96c3e81908db8cce682b5447800fcb7a3fe5e0b9 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit f70844868a834fe988eb0716f6af4cbaacf89727) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Flipable: switch sides at 90 degrees regardless of camera distanceJiDe Zhang2023-02-083-6/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 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> (cherry picked from commit 036b6159edeb8e5ffe7a1c5e83ac99c3ab2e9988) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-071-4/+4
| | | | | | | | | | Change-Id: Ic92e09ee1c76d2c5598075abce0c83e46b179464 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-02-031-4/+4
| | | | | | | | | | Change-Id: I440daea1d39d1877a95632181f1ac0ecbfbd7888 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
| * Fix QQuickCanvasItem in case of invalidateSceneGraph()Thomas Senyk2023-02-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding requestPaint() at the end of invalidateSceneGraph() will make sure that painting is trigger properly again, including the (re-)creation of the painting context. As that request of painting will also recreate the painting context, it will also allow the creation of a new QSGNode Without this patch a nullptr will be returned as QSGNode until a "proper" dirty or update() happens due to property changes or explicit update calls. Change-Id: If1e79d135d3d1f5253cb41a3be1630cfed3865dd Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit 185b0d5f215df0254b38ac8a7dfb72c20ce9bc1e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Fix QQuickImageParticle in case of QRhi re-createThomas Senyk2023-02-023-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this patch QQuickImageParticle will now properly re-query the m_rhi member the next time updatePaintNode() is called Additionally a new (override) QQuickImageParticle::invalidateSceneGraph() will call reset() so that potential sub-nodes (e.g. SpriteParticle) will also be re-created Last but not least: QQuickSpriteEngine::startAssemblingImage() was missing to reset it's sprites container (without that the sprites would pile up and eventually fail with "Too many animations" error) Change-Id: I172fd23ddfac475542aabc6cc17d8fee74f728b2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> (cherry picked from commit b899dff5d496e8bebb6bb81e37951d03f8469f63) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| * Doc: Disambiguate description of module URIsUlf Hermann2023-02-012-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | While you can, technically, have URIs that contain '$', or '幽', '霊', '文', and '字', you really shouldn't. Amends commit 9e4f6d92111bff0d422609704673cc0d9a46cafd. Fixes: QTBUG-106074 Change-Id: Ic0f13b6ea2bb704d2bd9f4fa5841aa69a88cd5a7 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Semih Yavuz <semih.yavuz@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit a29f3160898823cb300172c57ff6a7cd7bb74aba)
| * Update dependencies on 'tqtc/lts-6.2' in qt/tqtc-qtdeclarativeQt Submodule Update Bot2023-01-311-4/+4
| | | | | | | | | | Change-Id: Ieb101f4a6275eaf00d3f75533dfb075116a539e5 Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>