Commit Graph

1025 Commits

Author SHA1 Message Date
Eskil Abrahamsen Blomfeldt 5e8314f472 Move Qt Quick Shapes example
Usually, we have separate top-level example directories for
different modules, but since Qt Quick Shapes only had a single
example, it was categorized under examples/quick.

We now plan to add more, so to prepare for that, this sets up
the normal structure with an examples/quickshapes directory.

Pick-to: 6.7
Change-Id: I50016358b674c18bb2930459d4e0111862ddcedb
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2024-01-06 11:19:17 +01:00
Topi Reinio dfe316ad0b Doc: Fix linking issues and missing QDoc commands
Fix multiple incorrect \l (link) command arguments that were not
captured by documentation testing in CI.

Add missing \endqml and \endcode commands to code snippets.

Convert \sa commands that are meant to be related to specific \section
commands into manual 'See also' paragraphs. Otherwise, they are listed
at the bottom of the page.

Pick-to: 6.7
Change-Id: Icf2a97f63b8b8cdec2d9398448d28759dabdb06b
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2024-01-06 05:50:39 +00:00
Shawn Rutledge f719ee6408 Avoid crashing in the quickwidgets example after closing the subwindow
Closing the window deletes m_quickWidget; so we disable the menu items
for grabbing from it, because those cannot work. Also add asserts.

Fixes: QTBUG-120296
Pick-to: 5.15 6.2 6.5 6.6 6.7
Change-Id: I68154c2d1e4553c771815e29cbe3b095d85893f1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-01-05 22:50:35 -07:00
Tor Arne Vestbø f8ba365128 examples: Increase hit area of LauncherList buttons; simplify
Pick-to: 6.5 6.6 6.7
Change-Id: Ife040f9c7e01fd8b8ce80595c2179d6b78648c6e
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-12-12 16:44:45 -07:00
Kai Köhne f3f3de6c38 Doc: Move Flipable, Dial Control example to UI Components category
Arguably fits better than Graphics & Multimedia.

Pick-to: 6.6 6.7
Change-Id: I2604d5f43621a73ad28d01532e6ad8ec121a2e29
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-12-11 17:39:50 +00:00
Fabian Kosmale 6dd97d29ea embeddedinwidgets: Use modern loadFromModule API
Replaces 4f4a915ded

Fixes: QTBUG-119318
Change-Id: I3c508a8b5b7f060cdb2b0eac087c24dab0f552e2
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-12-06 09:48:12 +01:00
Matthias Rauter fc5c668e55 Update Responsive Layouts Example
Fixes: QTBUG-119388
Change-Id: I66c7bf0e0aaba13a04b9cc7e6f042ded47e0b0b1
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
2023-12-03 21:13:19 +00:00
Andreas Eliasson 39793d56e0 Doc: Add CMake section to Scene Graph example
The current page only mentions qmake. Let's add a CMake section.
Also, make minor grammatical fixes.

Fixes: QTBUG-118802
Pick-to: 6.6 6.5
Change-Id: I311084c72f609a72ef5716964cd6c7c28fa64208
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
2023-12-01 09:24:46 +00:00
Shawn Rutledge 7317a898c5 Change Cumquat to Kumquat in example
Cumquat is Australian English apparently, and looks vaguely dirty to
the rest of us.  https://en.wikipedia.org/wiki/Kumquat

Change-Id: Iee3f97f7bda526791fc7ec07395152efff5e116f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2023-11-29 08:49:56 -07:00
Shawn Rutledge a2f1df4d3d doc: Mention the Draggable Selection example
As long as we are not deprecating Package, we should keep showing how to
use it the way that the docs already describe: to aggregate Items by
giving the selection a name.

Also a drive-by grammar correction.

Change-Id: I373269d5e2e103ca83b724e3a553c37a60bafbde
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2023-11-29 08:49:56 -07:00
Lucie Gérard 8dc2e3daf0 Move undocumented quick examples to manual tests
- maskedmousearea ought to be redone with input handlers
- delegatechooser needs a realistic use case, not so ugly
- itemparticle hasn't been in working condition for some time,
  due to its use of flickr API
- keep FlickrRssModel only in manual tests (broken for now)
- remove bogus copies of flipable example files from the
  delegatemodel example which were added in
  1fef24732b
- copy shared components that examples tend to depend on
  into a shared directory for manual tests

Task-number: QTBUG-88470
Task-number: QTBUG-119117
Change-Id: Ide1918f5e1b6fcc3efd939825892bfd270cef586
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-11-28 17:57:05 -07:00
Tor Arne Vestbø 4f4a915ded Fix embeddedinwidgets resource prefix in qmake project
Pick-to: 6.6 6.5
Change-Id: I151cb5dce9dfbed9914bce09397a21cd704ffe0c
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-11-24 23:33:41 +01:00
Laszlo Agocs d70b847f77 Fix corrupt rendering when toggling rendernode-based items
Meaning the toggling of visibility. Having a QSGRenderNode come and
go in the scenegraph leads to visual problems, in case the adding
and removal of the node toggles the m_forceNoUseDepthBuffer flag,
which in turn makes useDepthBuffer() return a different value
than before (so disables and then enables doing the opaque
pass in the renderer). Changing this value needs a full rebuild
of the render lists. When adding a node, this is done (regardless
of toggling the flag). When removing, it was not done at all.
Now we do it when resetting the no-Z flag back to false.

Add a button to the customrendernode example to toggle visibility
since this is useful for example's purposes anyways. However, this
on its own is not sufficient to reproduce the issue. For that,
the DepthAwareRendering flag needs to be removed from the
QSGRenderNode subclass.

Pick-to: 6.6 6.5
Fixes: QTBUG-119160
Change-Id: I232354d88f5a4fe5f9f2d6102d0d5439d92782fb
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-11-24 18:34:03 +01:00
Shawn Rutledge 8f6809681e Disable TapHandler.longPressed signal if longPressThreshold == 0
There needs to be a way to disable the long-press feature, because it's
exclusive: if we emit longPressed(), we do not emit tapped(). But we
should also be able to accommodate slow users who pause for too long
unintentionally, or while simply observing the behavior.

Also clarify that resetting longPressThreshold reverts to the default.
Add more exhaustive test coverage, verify that longPressed
and tapped are mutually exclusive, and verify the effects of
violating the gesturePolicy.

Change longPressThreshold on LauncherList's back button so that it
always triggers, regardless whether the user pauses on it for a while.

[ChangeLog][QtQuick][Event Handlers] TapHandler.longPressThreshold
can now be set to 0 to disable its press-and-hold feature, and can be
reset to undefined to restore the platform default.

Fixes: QTBUG-119132
Task-number: QTBUG-105810
Pick-to: 6.5 6.6
Change-Id: Id5fd7e51c70fdb0cb6c4beb5615717a222aec871
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-11-17 07:28:57 -07:00
Shawn Rutledge 1b166c87d0 Make TapHandler longPressed/tapped exclusive and reliable; fix example
The back button in the examples' LauncherList.qml has been flaky.
As described in the docs, a TapHandler used to implement a Button
should have `gesturePolicy: TapHandler.ReleaseWithinBounds` to get
the common behavior that you can drag out of the button to cancel
the click, and you can also drag back into the button to change your
mind and let it click after all. But when trying to test this behavior,
another problem became evident: if you spend a longer time than
longPressThreshold for the whole gesture, then at the time of release
you could see the debug output "long press threshold exceeded" and the
tapped signal was not emitted. Our intention was that if you are
dragging around, the TapHandler is not eligible to emit the longPressed
signal; it follows that it should not become ineligible to emit tapped,
either (tapped can be emitted if other constraints are satisfied).
The intention of the ReleaseWithinBounds policy is that it doesn't
matter how much you drag, as long as the point is within the bounds
of the parent at the time of release.

So we begin keeping track of whether we have actually emitted the
longPressed signal, rather than merely looking at the time difference.

This changed behavior in tst_qquickdeliveryagent::passiveGrabberOrder:
1 second is more than enough time for long press with the default
longPressThreshold, and now the tapped signals are no longer emitted
after longPressed. So we just wait for pressed state rather than
waiting so long. qWaits in tests are best avoided anyway (although
I think the intention in 152e12dc22
might have been to wait long enough to ensure that nothing undesired
would occur, rather than waiting for something specific to occur).

Task-number: QTBUG-65012
Task-number: QTBUG-105810
Pick-to: 6.5 6.6
Change-Id: If6a86d955e19810cb06de659f5e39b50a72fa762
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-11-17 07:28:57 -07:00
Laszlo Agocs fa09df7e1a Add doc page for the threadedanimation example
Change-Id: I8907c8532bf7abdc573d2e878374e3f26618f8d9
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-17 15:28:57 +01:00
Eskil Abrahamsen Blomfeldt 85e65e101b Add license headers to shader source
Pick-to: 5.15 6.2 6.5 6.6
Change-Id: I007eaddf0a3a9e7e6242d4e02b487fa0806c96a7
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-10-30 10:30:37 +02:00
Paul Olav Tvete c1a0cb5a3a Add zooming to the shapes example
Pick-to: 6.6
Change-Id: If10ffe77b5e61f605f9f735c51f639c422844b2d
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
2023-10-03 10:10:41 +02:00
Laszlo Agocs a903c2577b rhitextureitem example: Remove QuickPrivate dependency
In the dev (6.7) version this is definitely not needed.
Not sure how it got there.

Change-Id: Iba0c68aef0fc19c92565908d622e4f8827fe72c9
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-10-02 11:12:52 +02:00
Shawn Rutledge 251fdf01a6 Rename shapes example qml files according to what they demonstrate
Amends 270a6f9bba

Fixes: QTBUG-115485
Pick-to: 6.2 6.5 6.6 6.6.0
Change-Id: Id77b4dd8ce83175ebe29d24bf987572d5e9069d7
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-09-27 21:16:05 +02:00
Jaishree Vyas 46fc095ae4 Doc: Add example categories for qtquick
Task-number: QTBUG-116334
Pick-to: 6.5 6.6
Change-Id: I993b6157c3ef8a69e4e218d62596b5219ab4b34b
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-09-26 14:08:47 +02:00
Laszlo Agocs bcda7aa6e4 Show item size in rhitextureitem example
To make the logical window/item size vs. reality (texture sizes
in pixels) difference obvious immediately.

Also change the slider max value to 2048 to allow exercising up to
2048x2048 textures.

Also clean up the texture format label.

Change-Id: I27e0d1fe99fa2a32f55176612ac1ca65c9045a4d
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
2023-09-25 11:01:17 +02:00
Laszlo Agocs aeb3bd235a Clean up customrendernode example
Make it more consistent with other scenegraph examples, and make it
more compact, in particular when it comes to handling the QRhi
resources (smart pointers are quite useful in this case since they
help dropping a bunch of lines)

Expand the docs.

Pick-to: 6.6 6.6.0
Change-Id: I97bceca7759db9738d34f0fbf7eb29b0ae6e4c0f
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
2023-09-25 09:01:17 +00:00
Kaj Grönholm 75a33aceab Small improvements into Graph example
Use FrameAnimation instead of Timer and double the amount of samples
to make the example smoother.

Pick-to: 6.6
Change-Id: I6f5bb1414fd7532e16aeb25f886879828ce29854
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2023-09-15 13:04:19 +03:00
Topi Reinio 83ba6a889f Doc: Fix undocumented parameters and broken links
* src/qml/jsapi/qjsengine.cpp:
    (qdoc) warning: Can't link to 'qvariant_cast()'

* src/quick/items/qquickrhiitem.cpp:
    (qdoc) warning: Undocumented parameter 'item' in
    QQuickRhiItemRenderer::synchronize()
    (qdoc) warning: Can't link to 'msaaColorBuffer()'
    (qdoc) warning: Can't link to 'resolveTexture()'

* src/quick/scenegraph/util/qsgtextnode.cpp:
    (qdoc) warning: No such enum item 'Text.NativeRendering' in
    QSGTextNode::RenderType
    (qdoc) warning: Undocumented parameter 'color' in
    QSGTextNode::setColor()
    (qdoc) warning: Undocumented parameter 'color' in
    QSGTextNode::setSelectionColor()
    (qdoc) warning: Undocumented parameter 'viewport' in
    QSGTextNode::setViewport()

* examples/quick/rendercontrol/rendercontrol_rhi/doc/src/
  rendercontrol_rhi.qdoc:
    (qdoc) warning: Can't link to 'QWidget-based'
    (qdoc) warning: Can't link to 'QAnimationDriver'

Mark all documentation modules in qtdeclarative as free of warnings.

Change-Id: I97cc059701c351b53cdeeb5fc2feff923c5a76a8
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2023-09-15 10:04:17 +00:00
Rami Potinkara 628659f759 Update mobile example categories for Qt 6.6
Add mobile example category tags for the chosen examples.
Add for the ones that work best for both Android and iOS.
Remove from the ones that do not work for both (at least yet).

Added, as verified on Android
-scenegraph openglunderqml
-qtquickcontrols-contactlist
-qtquickcontrols-gallery
-qtquickcontrols-wearable

Removed (for now), as not verified yet on Android
-qtquickcontrols-todolist

Fixes: QTBUG-116780
Pick-to: 6.6
Change-Id: I7f22329ec93dedaa63df34bb55dd67d14ffe5c1d
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2023-09-11 13:22:00 +00:00
Inkamari Harjula e421c21c3b Doc: Add example category to all the files that haven't yet got it
Added example category and also fixed one copy-paste mistake in Vulkan Texture Import.

Task-number: QTBUG-116205
Pick-to: 6.5 6.6
Change-Id: I96692f214849596e9555c635d9996d9b884c5cab
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-09-06 06:55:46 +00:00
Jaishree Vyas b16bea02f6 Doc: Add example categories for qtquick
Task-number: QTBUG-116334
Pick-to: 6.5 6.6
Change-Id: Id17a546b9363e5225b8778c629fe9ffe30d2e719
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2023-09-05 15:49:33 +02:00
Laszlo Agocs 47680a6276 rendercontrol_rhi example: Fix some broken indentation
Change-Id: I57d94e5362ea1d86dd7835678436cdd6e5ad6ad5
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-09-04 14:55:16 +02:00
Laszlo Agocs 0e1e111f06 rendercontrol_rhi example: Make the custom animation driver optional
Change-Id: Ia9b25c87452eb4ede47f5464294857aa5c6fdc2e
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-09-04 14:55:14 +02:00
Laszlo Agocs 33ab96f8e3 rendercontrol_rhi example: Add a checkbox to exercise mirrorVertically
Change-Id: Ia8ff0162db51e9e7c6eb6fb38df1ca28a47935fc
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-09-04 14:55:11 +02:00
Laszlo Agocs 76ae3dd783 Fix QQuickWidget rendering API mapping for D3D12
Right now requesting d3d12 via QSG_RHI_BACKEND or the C++
API maps to the Null backend of QRhi. That is not ideal.

QRhiWidget has this logic, but the already existing
QQuickWidget was not yet adjusted in 6.6 it seems.

Pick-to: 6.6
Change-Id: I12301e815d525c14584b01dcd0caa787d1c79ad0
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-09-04 14:55:03 +02:00
Kaj Grönholm eb6af63f61 Add CurveRenderer item into shape antialiasing example
CurveRenderer has built-in antialiasing supports, so compare it here to
MSAA and SSAA.

Task-number: QTBUG-104122
Pick-to: 6.6
Change-Id: I207ab770cae052b195e9da8802dc594a91ce713b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
2023-08-23 13:31:07 +03:00
Inkamari Harjula 0ebd825d10 Doc: Add example categories to Particles examples
Add the example categories of Particles examples.

Task-number: QTBUG-116265
Pick-to: 6.5 6.6
Change-Id: Ie773c51c8a862c3cba74b22a68078d68eb14b42d
Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io>
2023-08-23 08:09:12 +03:00
Paul Wicking 9e3b681460 Doc: Use sensible argument in `\printto` command
The "Scene Graph - Vulkan Under QML" example includes snippets of code
from the example source file(s) using a combination of the `\skipto` and
`\printto` QDoc commands. The former skips content until the line that
contains the argument passed to the command
(here, "class VulkanSquircle"). The latter prints lines up to, but not
including, the line that contains the argument passed to the command
(here, "public"). I suspect the author's intention was for QDoc to
output lines from the start of the class declaration until the public
access specifier in the member specification of the class. However, the
first instance of `public` QDoc encounters is the base-specifier of the
derived class, which is on the same line as the argument to the
`\skipto` command. Hence, there's nothing for QDoc to output.

Modifying the argument to include the colon that indicates the keyword
is for member-declarations ensures QDoc generates output as expected.

Fixes: QTBUG-116304
Pick-to: 6.6 6.5
Change-Id: Ibfc17fbacd10f902fc2a5f57873fe0990571535e
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Safiyyah Moosa <safiyyah.moosa@qt.io>
2023-08-22 12:38:28 +02:00
Laszlo Agocs 8024e182f6 Add a QRhi-based QQuickRenderControl example
Task-number: QTBUG-113331
Change-Id: I638e0f2483bf88d6fff3ad929ea6714e64fa199b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-08-15 14:13:32 +02:00
Laszlo Agocs bd71e82c2f Add QQuickRhiItem
Try to follow the QRhiWidget API in most ways.

Implies that the rhitextureitem example is repurposed
to be the QQuickRhiItem example.

The qquickitemrhiintegration autotest is repurposed as
the qquickrhiitem autotest.

Task-number: QTBUG-113331
Change-Id: I045d87f82ace07c8571c72c78e193cd5201cad69
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
2023-08-14 17:03:42 +02:00
Laszlo Agocs b0b940e472 Remove unused forward decl in rhitextureitem example
Pick-to: 6.6
Change-Id: I1a472445bf2f88213536b3973349ebd7a34f93de
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-07-28 13:25:23 +02:00
Laszlo Agocs 17e6ebc039 Remove unused line in rhitextureitem example
Pick-to: 6.6
Change-Id: Ie1ab98d7d2997e12e1a92d61e19f543fc9accd86
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2023-07-28 13:25:23 +02:00
Kai Köhne 4de224d015 Doc: Update example category names
Pick-to: 6.5 6.6
Change-Id: Iadd29b0497ad264de46ddaf78546685f58abe6e6
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2023-07-11 18:04:22 +02:00
Oliver Eftevaag 38d6028ad1 Merge externaldraganddrop example into the draganddrop example
We have two examples that are both showcasing different drag and drop
features.

Might as well only have one.

Pick-to: 6.6
Change-Id: I9d984f723f42aaf39c5632e58fc376ad0df18acb
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-07-04 06:54:09 +02:00
Oliver Eftevaag 38373b81f3 convert threading example to manual tests
The threading example used a LauncherList to combine
two different but related examples into one.

I've now separated both into a shared directory called
'threading'

Pick-to: 6.6
Change-Id: Iee8898e61adcf69dc67157a1eff5f6ac019a39ca
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-07-04 00:18:47 +02:00
Oliver Eftevaag dba7d84843 move righttoleft example to manual test, and revamp it
The patch makes the following changes to the example:
- It fixes all qmllint warnings.
- It translates all user-facing strings.
- It reorders some properties.
- It removes the Loaders in layoutdirection.qml
- It also does some other things,
  like removing unused lines of code, etc.

Pick-to: 6.5 6.6
Change-Id: I798db60a2bf2d87c64b68947588585d10ba4015d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
2023-07-03 10:57:51 +02:00
Shawn Rutledge 1fc968c513 Move touchinteraction examples to pointerhandlers and manual test
These are getting long in the tooth, but multiflame and corkboards seem
worthwhile to update to use Pointer Handlers (as we could have done
sometime during the last 5 years or so).

The qrc prefix seems to have changed: let's get the qmake build
working again.

The multiflame example is mostly rewritten:
- all in one file, which can run standalone
- only one ParticleSystem instance (which hopefully is more efficient)
- using an inline component
- less boilerplate per component instance (only one property for
  ColoredEmitter, which is both its color and its group name)
- less-extreme, more fire-like colors

The version of corkboards in Qt Quick 3D was already updated (and then
removed for unrelated reasons); now we have the fixes from
0227fcdf3ea82efee3005d99fd1019410a7f5789

BearWhack has nice graphics, but doesn't seem like a very nice use of
multi-touch, so it's demoted to the touch manual test for now.
The simple Flickable use cases seem underwhelming nowadays too, and
we have snippets as simple as those.

Replace mentions of touchinteraction for testing with pointerhandlers.

Pick-to: 6.6
Change-Id: I4667e13e961ca6f84d3336505b3c673790babfa5
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-02 21:43:46 +02:00
Shawn Rutledge 794b6a6ab7 doc: Rename to Qt Quick Examples - Pointer Handlers
This seems to be still a consistent naming convention for example docs.

Pick-to: 6.6
Change-Id: I508526ec992222da1c971bc327dd9c83a21640aa
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
2023-07-02 00:06:36 +02:00
Oliver Eftevaag c4d520c200 Make views example more in line with our guidelines
The views example is an old example, which shows off many different
features related to ListView, GridView and the QML models.

Unfortunately, there are currently a few things that are broken in it.
One of those things is the FlickrRssModel, which no longer works,
because flickr changed their web API.

This patch makes some improvements, but it's unfortunately not fixing
everything.
The list of fixes are the following:
- Fix a good number of qmllint warnings. Unfortunately, there seems to
  be a good number of false positives that remain unfixed.
- Use qsTr() in some places. But I've not adopted it everywhere.
- sections.qml now uses Qt Quick Controls CheckBox'es instead of a
  custom component.
- Property bindings are now declared on separate lines.

Pick-to: 6.6
Change-Id: Idfb563f4bd658dc70c1b9975549e872e7c25449e
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-06-30 08:47:17 +00:00
Oliver Eftevaag 838472592b revamp animation example according to guidelines
The following changes are applied to the example:
- All qmllint warnings are fixed.
- Tv tennis part of the example is now actually working.
- Use let/const instead of var in JS.
- Use qsTr() in a few places.
- Use strict equality operator, when it's wise to do so.

Pick-to: 6.6 6.5
Change-Id: If0222feb942abfd0a6c9f8a8cab0ac60ced3d76e
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
2023-06-28 19:39:15 +02:00
Kai Köhne 8f1e6aa0ed Examples: Fix license to Commercial or BSD-3-Clause
Pick-to: 6.5 6.6
Change-Id: Ieb1db96846e02c3b93888ed409af82bfb3567c19
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-06-26 16:23:24 +02:00
Kai Köhne a2541c3098 Examples: Fix license of BlurHelper.qml
Pick-to: 6.5 6.6
Change-Id: I048d287487b87e0ef7c6ba448b69312859e155ad
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2023-06-26 13:40:25 +02:00
Dimitrios Apostolou c91b718637 Fix examples writing resource files to the wrong directory
When configuring the qt5 supermodule with -make examples, the
directories

  examples/quick/imageresponseprovider/ImageResponseProviderCore/
  examples/quick/imageprovider/ImageProviderCore/

were being created under the qt5 parent dir, instead of inside the
qtdeclarative subdirectory.

Fixes: QTBUG-113495
Pick-to: 6.5 6.6
Change-Id: I78a3fe6e1cab97b6e7be7900d2ecb66175a68065
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
2023-06-23 18:22:37 +02:00