This reverts commit c35da8e952.
This considerably slows down downloads from Asia. Also, the original
reason to care about COARS was multi-threaded WebAssembly, but we're
using single-threaded WebAssembly for now.
Task-number: QTBUG-129105
Change-Id: Ia7aeb265b095337c2da732f1c6ce682026c57c55
Pick-to: 6.9
Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Apply a couple of fixes to load icons correctly and preventing seg fault
in loading txt files in the documentviewer demo.
Change-Id: I5c3e8694abe37140d73da8b40204bc05aaf37e9c
Pick-to: 6.9 6.8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
The server URLs got an additional /API path and they didn't fit into the
delegates anymore. This patch increases the delegate width so it looks
nice again. This is not the best solution. A dynamic solution would be
better but also a bit too complicated for an example.
Amends 6a6212a652.
Pick-to: 6.9 6.8
Change-Id: Iead827d4e37b5e0494f7f35c95934b8bf848cb40
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Use include style that is consistent with rest of the
application. The include style was a leftover from the times the
application itself defined "restaccessmanager.h". Since Qt 6.7
the qrestaccessmanager.h is a proper QtNetwork class header.
Pick-to: 6.9 6.8
Change-Id: I25c1103ed9ccef1aa1da86475a1e20d9dba76a3b
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Mate Barany <mate.barany@qt.io>
The application uses QtNetwork classes and should link against it
accordingly. This missing linkage doesn't cause problems for most
users because QtNetwork is usually transitively linked through other
modules.
But understandably relying on transitive linkage is not acceptable.
This became a problem when disabling QML networking
(-no-feature-qml-network) => Qt::Network classes no longer available.
Pick-to: 6.9 6.8 6.5
Fixes: QTBUG-136036
Change-Id: Id2f1348551f77c5139b514bce95d97f8c8e38f67
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Reviewed-by: Mate Barany <mate.barany@qt.io>
Having a \table with 3 \inlineimages on each row is prone to cause
overflow issues on narrower screen widths. Listing the three groups
of \inlineimages together with a \section1 and a \br is more dynamic
and will wrap the images as the screen width changes.
Fixes: QTBUG-134789
Pick-to: 6.9 6.8 6.5
Change-Id: Id05df222fea226e602a74b57bef0bce0a55b86a3
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
The latter is deprecated now, don't encourage further use of it.
Pick-to: 6.9.0 6.9 6.8
Change-Id: I41b00cb9365fa7b86c2524cc888526a74413e4ab
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This uses the "Cally" JS calendar component as the
native window, since the built in calendar input displays
the calendar as a popup and not on the input element
itself.
The native calendar element is created from JavaScript,
ownership is then passed to emscripten::val on the C++
side:
element -> EM_VAL -> emscripten::val
Alternatively, the calendar could also have been created
from C++ using code like
val calendar = val::global("document").call<val>("createElement", std::string("calendar-date"));
calendar["innerHTML"] = std::string("<calendar-month></calendar-month>");
We create a copy of the calendar val on the heap in order
to be able to pass a pointer to fromWinId() which does not
become stale when the function returns.
Done-with: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Change-Id: Ib68e82f01dc1c489b847b794aa09d6ccc9986157
Reviewed-by: Piotr Wierciński <piotr.wiercinski@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This change ensures proper initial distance of dices based
on their size. It also distributes them horizontally so that
they hit each other later at different angles.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I7f8d2ab0c9b7b6b00996cae8fb121de950b68ca4
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Although the SoundEffect type has lower latency, it is
more resource intensive and shows lower performance and
makes the UI stuttering in some desktop or mobile target
devices.
In this change, we replace SoundEffect with MediaPlayer to
get better visual performance.
Pick-to: 6.8 6.9 6.9.0
Change-Id: Ib5f4d8fe6efb726e341481af9a3aaf2d1f4f1515
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This change enhances the readability of the code and improves the
behavior of triggering a roll. It adds a small delay to prevent
multiple rolls from occurring in short intervals.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I657450be50742d9b6236e2c29cf365b04349f191
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
The user could not see actual values that are set with
sliders. This change appends those values to their related
labels.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I0683a2765368e8385e103639695f7f337902e996
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This removes the hide() function and the manual animation
from the tapLabel and uses Behavior as an alternative.
Pick-to: 6.8 6.9 6.9.0
Change-Id: Ib4cb924ff1ac3dce70dfde3a80e00efa39a5799a
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
The OrbitCameraController inside the Scene, steals gestures from
the Flickable inside the drawer.
This change disables the camera controller when drawer is shown.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I557f1196db0da2d1b30ddbfbe804585de2519f1a
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
atRest property should be true while the motionTimeout timer
is running.
This change remove a function binding and directly aliases the
atRest property to running property of the timer.
TODO: atRest is unused based on a previous change. If we decide
to keep the logic in the previous patch, then we can remove
this timer and also the property.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I9d0c58f192251621cb3e691cf431366eb6b1dd68
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
This change replaces the imperative logic of DiceSpawner
with a more declarative approach using Repeater3D.
It also replaces sending properties via functions, with
property binding and property aliases.
Pick-to: 6.8 6.9 6.9.0
Change-Id: Ic5c166fb50b0ede393cc72411f1a4a7e08a6ccd7
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
DirectionalLight shows performance issues on some targets.
We can achieve a similar visual result with a PointLight.
Pick-to: 6.8 6.9 6.9.0
Change-Id: I39708d2179782f8643ede39e970f47337cae507f
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Remove 30 unused images which reduced the downloaded assets count from
99 to 69 and saved unnecessary many megabytes of download.
Change-Id: If249bb476e50c9b6e4cb9ac35884a982a0558ba1
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Update "Connections" nodes to use the modern
style handlers which removes many warnings.
Change-Id: Idc8b03cdfd6b686e85ba9cd8e9f86e0c94ffdfa8
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
The _Desert1 uses a .hdr source. A version with .ktx source is
already available.
This change removes _Desert1 and replaces it with _Desert.
Fixes: QTBUG-132704
Pick-to: 6.9 6.9.0 6.8
Change-Id: Ie22b02379f7f83082a7aa58fa04fffbc0e9c4ece
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Since qtbase/b8f588bea74aae0a890e1af18b936b0bfbf8c237
removed the QtWidgets image viewer example, there
is no way to exercise the image plugins.
Re-add the code as documentviewer plugin.
Pick-to: 6.9
Change-Id: I0eb26d02a9c11cdb0fce315ffc6f7c662e98c924
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Setting this to 35 is not going to work properly as edge-to-edge is not
working properly yet in Qt for Android 15.
See https://developer.android.com/develop/ui/views/layout/edge-to-edge
Fixes: QTBUG-132360
Pick-to: 6.9 6.8
Change-Id: I46020d07e3aea59d57ebf1bef1b25f1f90971827
Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
The txtviewer plugin example is part of the documentviewer example but
at the same time a separate example with its own documentation page.
That means it appears on Qt Creator's Welcome Page and must be buildable
standalone.
Add the usual CMake stanza for standalone projects to the top of the
project file.
Pick-to: 6.8 6.9
Task-number: QTBUG-132738
Change-Id: Ib5aad765ec5dbc2406df6b1cca574a20448f6529
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Also shrink the plugin names
This patch forces a shorter build directory as a solution to maximum
path issue on windwos.
Fixes: QTBUG-132551
Change-Id: I06ea6ac987e2341fd12f972f29625fca122de1f4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Configuring the examples will emit QTP0004 warnings. Setting them by
increasing the minimum version for qt_standard_project_setup.
Pick-to: 6.8 6.9
Change-Id: Iefaad04f4ea098d7ba942ce4ae38f29971b574c6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
xr_physicsbase_teleportation is included by demos.pro, but does not have
a qmake build system. This causes compile errors when the denpendencies
are available.
Remove it.
Pick-to: 6.8 6.9
Change-Id: I55c488608ff4bdc7a2ce8223d27ce8a1d7d28fe4
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
The media player example links with Qt::Svg, so we should exclude it if
Qt::Svg is not built.
Pick-to: 6.8 6.9
Change-Id: Ie52fa6fa515a2427834deaa65f3725a6ed9886cb
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
There is no point in being able to make the camera not focused on the
table since there is nothing else to see in the example.
Change-Id: I6fc0df5619080165ea147ce870065b2cae12e371
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Changed the easing curve to QEasingCurve::Linear to improve smoothness.
Updated setValue() to prevent restarting the animation unnecessarily if
the new value matches the current target. This change enhances the user
experience by reducing visual jitter and improving animation flow.
Task-number: QTBUG-130307
Pick-to: 6.8
Change-Id: Idd05f17d14a0a653a24a083ad421c3fe0418c3c9
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Use modern theme icons. Add standard shortcuts to the PDF
viewer actions. Remove duplicated adding to the toolbar.
Pick-to: 6.8
Change-Id: I4cfe33c7b8fcc3c070f5c0542b821dd9393bfe2d
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This patch allows the user to change the audio device while a video or
audio file is being played in the media player app.
Before this change, audio would start playing on operating system's
default audio device, but it would not switch to another audio device
even if the user selected another device while the media was playing.
This patch uses a MediaDevices QML element to listen to audio device
changes from the operating system, and will automatically switch to the
device that is set as default at any time.
Fixes: QTBUG-119282
Pick-to: 6.8
Change-Id: Id1acfe9e9025a81c4cc3fa0e4593292f287f7b9a
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
REUSE.toml files are read by reuse to complement or override the
copyright and licensing information found in file.
The use of REUSE.toml files was introduced in REUSE version 3.1.0a1.
This reuse version is compatible with reuse specification
version 3.2 [1].
With this commit's files,
* The SPDX document generated by reuse spdx conforms to SPDX 2.3,
* The reuse lint command reports that the Qt project is reuse compliant.
In order to be reuse compliant all the licenses referenced in file
or within a REUSE.toml file must be present in the LICENSES
directory at the base of the module.
The missing licenses are added.
Also, all the licenses present in the LICENSES directory must be used.
License files not used are removed.
[1]: https://reuse.software/spec-3.2/
Task-number: QTBUG-124453
Task-number: QTBUG-125211
Pick-to: 6.8
Change-Id: I1dabbf6f13c2ae5ad73dc8c7df9108c160e1dc2b
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This is not needed after 0db5b424cdaede8724886e8a1eda1380382d9aaf.
Change-Id: Ic4eee7a99458e294f5dc79bba44dc844064f63c2
Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io>
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
The icon is only used in the documentation of this example.
It should be updated since there are some changes in the view of the
example.
Pick-to: 6.8
Change-Id: Ife23857c0c1aba092255dcd10a5104772a25bd85
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
To remove a warning for the examples
Change-Id: Ib59656262e72fcacd75b37f16dfbc40736b919eb
Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Introduce a OSMTileData::distanceTo() function and a named lambda for
readability.
Pick-to: 6.8
Change-Id: I7989c6095fc18f9a2bfaa713a1b4b1c0cc162e31
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
- Bind the width of the item delegate to that of the attached
ListView.view instead of the width of its parent. The latter
was giving us warnings as the parent was not valid.
- Remove duplicate signal overrides in the CustomStyle's Dialog
implementation.
- Build app as a bundle on macOS.
Task-number: QTBUG-125322
Pick-to: 6.8 6.7
Change-Id: I3817d2f30f9b530fd63e60b8da7f832674883153
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
- Fix some spelling errors
- Avoid contains()/value() antipattern.
- Move the URL constants into the source do not use tr() on them
- Remove unused lambda parameters
Noticed while porting to Python.
Pick-to: 6.8
Change-Id: I531959984a99dd9113311f43c460c5270e50aa2b
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Store it in the m_buildingsHash instead of a string key,
saving a few allocations.
Pick-to: 6.8
Change-Id: I6d3e58726ca2d8dc3569915770e96eed9b4f3517
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
qdoc does consider section titles implicit anchors. Adding a
'Qt Quick' section thererfore had the effect that links to 'Qt Quick'
in other pages started pointing to this section, instead of the Qt Quick
module landing page.
Avoid this conflict by making the section title more descriptive.
Pick-to: 6.8
Fixes: QTBUG-129569
Change-Id: I7b1805b2f0cf9ebb65f71a259600b6554db2dc33
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 60e04b1d67)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
There was a bug previously causing the shadowBias to be 2x its specified
value, so update the value to account for this fix.
Change-Id: I980993eb3a798755ede736d6b20537ed4f23186c
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Qt Multimedia's media player, and QtScXml's media player used the same
mediaplayer.png filename on their respective application screenshot,
which caused the QtScXml example image to incorrectly be used with the
Qt Multimedia example.
Renaming the media player image from mediaplayer.png to
mediaplayerapp.png. This way the filename matches the CMake target name
for the application.
Fixes: QTBUG-129444
Pick-to: 6.8 6.7
Change-Id: Ie4d93d2cc5100a42faeec7828775b62a56d3ff23
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Make sure that the example is only shown in Qt Creator
is Qt Quick 3D, Qt Positioning modules are available.
Pick-to: 6.8
Fixes: QTBUG-114998
Change-Id: Ia759df01598415f4d534581c4c7bf06290c785b5
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>