summaryrefslogtreecommitdiffstats
path: root/examples/demos
Commit message (Collapse)AuthorAgeFilesLines
* Categorize Same Game as Application Example6.5Kai Köhne2023-10-171-1/+2
| | | | | | | | | | | Also simplify name to 'Same Game'. Task-number: QTBUG-117207 Change-Id: I6c16698bea3bc853ac7632d058e5f6c65a55a1d8 Reviewed-by: Mats Honkamaa <mats.honkamaa@qt.io> (cherry picked from commit 662d283ba3085e17850a54d3b1f5b2023af2d53d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 2f41957ad953a7632cdef171816d18811c68faee)
* Fix bug in Coffe example causing app stuck when user made a second coffeJakub Wincenciak2023-10-111-6/+0
| | | | | | | | | | | | | The bug was due to the fact that when the coffee was finished brewing, the state was being set to "initial" which was unnecessary. So I decided to remove this part of code, which solved the bug. Task-number: QTBUG-114375 Change-Id: I7c8cbc96330574f0378ea8d1ee3ac2a4732f70e3 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit 182521e2263f5561d1f28893623db8c01fcebcc9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit ecd23a5f952265effbc28933f084c51903924dab)
* Improve calqlatr exampleMitch Curtis2023-10-066-168/+161
| | | | | | | | | | | | | | | | | | | | | | | | - Fixed code formatting. - Clip the contents of the ListView containing the operation history to prevent it from spilling out into other UI elements. - Update copyright year. - Simplify some expressions. - Replaced root scope lookups with direct access to JS functions. - Make calculator.js a library so that it can be imported by other QML files without duplicating its state. - Replace "var" with "let". - Replace == and != with === and !==. - Simplify key event handling. - Removed unused ids. - Fix unqualified accesses. Fixes: QTBUG-54267 Pick-to: 6.2 Change-Id: I0d8e8f1d9b3cfe8123fd98b8c280dc3ff4bd86a0 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit c6a2a9ed4a27d29f3e49ae89c581595b658e7497) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit dbeed33d4a34ff041cd10a13ce5673d0555f0364)
* Examples: Check for availability of Quick3D at configure timeKai Köhne2023-09-092-2/+2
| | | | | | | | | | | | | | | | The examples do not need to link against Quick3D, but they use Quick3D QML import. Qt Quick3D is an optional component in the online installer though, so its easy to miss. By adding Quick3D to find_package(), we exchange a runtime error with a configure error in this case: error: Found package configuration file: C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "Quick3D". Expected Config file at "C:/Qt/6.6.0/msvc2019_64/lib/cmake/Qt6Quick3D/Qt6Quick3DConfig.cmake" does NOT exist Task-number: QTBUG-114998 Change-Id: I092068c5055d329769986da8d39605cb1bae3a4f Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit d4a134f2e5143ea09728d1c0beb4f975019ff21a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix broken linksTopi Reinio2023-09-071-1/+1
| | | | | | | | | | | | Remove links to examples that no longer exist, and fix linking to page/section titles that have changed. Fix other minor issues in passing. Change-Id: I6420fd7319e021f8a31f1776b31fabd05631c145 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> (cherry picked from commit 17f35126dc8aec9255a99238b42d43092444c2fe) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add Media Player example to Mobile categoryKimmo Leppälä2023-09-061-0/+1
| | | | | | | | | | In addition to Application Example Media, Player is added to Mobile category Change-Id: If4ba1813006fae626c6ea4a16f19bee34fc08f43 Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 2576db7f0e10fdef45d51d12d1afb1d07faaf79b) Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
* Doc: Hide attributions for example icons from overviewKai Köhne2023-08-301-0/+3
| | | | | | | | | | The code is only used in an example. Fixes: QTBUG-116580 Change-Id: I9a045d128a8f36e442ab38dd2fee0d84b31511e2 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 5f6a5f87bea73faa5f40d0e0fe8e936ae3bc22b8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add example categories to qtdoc examplesInkamari Harjula2023-08-283-0/+3
| | | | | | | | | | Added categories to qtdoc examples. Task-number: QTBUG-116430 Change-Id: I91adf8b2d4af083181b2203da8dec44d6b17f606 Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit aa5a3ae5d60718068ef0fc79a536eac85131eebc) Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* stocqt: Use named signal parametersKai Köhne2023-08-271-2/+2
| | | | | | | | | | | | Fix QML runtime warnings: qt.qml.context: qrc:/demos/stocqt/content/StockListDelegate.qml:99:13 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead. qt.qml.context: qrc:/demos/stocqt/content/StockListDelegate.qml:63:13 Parameter "text" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead. Change-Id: I2d3d5fe6db56456777d7df0c8fbfda970994a22e Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> (cherry picked from commit 054c18b0d335570b30c2b26df168401c6fbd7334) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add more examples to Application Examples categoryKai Köhne2023-08-243-0/+3
| | | | | | | | | | | | | | | Add following examples to Application Examples category: * Robot Arm Example * Qt Quick Demo - RESTful Color Palette API client * Media Player Example * Document Viewer Change-Id: Ie36bb9a09d7fe868db07e02edcb1778f214494e9 Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit e1220042e6d2b7ae64528261a97abf6f30b11574) Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Build FX_Material_Showroom example againKai Köhne2023-08-225-6/+7
| | | | | | | | | | | | Revert removal of the example from the default built that was done in 3f9c25bdb70e9 8941da8b4003. Use different names for the clashing CMake targets. Change-Id: Ife9b796fa416091505acfd9b5f59cc4ea6ab93f9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 0183fa1a97d55e9b1a2d4452334deba08721c813) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Dice: Extract calculation of 45degreesKai Köhne2023-08-141-1/+2
| | | | | | | | | Don't calculate this inside the for loop. Change-Id: I09d46e363325071086332d901235f0feeabbb474 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> (cherry picked from commit 0bc36e534e3497dbdee45b718f62120dfac3a30e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix links to AnimationController in Calcqlatr exampleKai Köhne2023-08-141-5/+5
| | | | | | | | | | Both QtQuick and Qt3D feature an AnimationController type. Make sure the right one is linked to. Change-Id: I292765f5ccc7fcd8228e461fc375b0a9b71768d6 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit 94d585bc448fe661989aba3e37d5f72ae5074fe6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Explicitly mention Quick3D requirement in the documentationKai Köhne2023-08-113-0/+6
| | | | | | | | | | | | | | Quick3D is an optional component in the online installer. As the examples are part of qtdoc, they are however installed & available also if Quick3D is missing. Let's at least mention the dependency in the respective examples' documentation. Add a general 'Running the Example' section if missing, too. Fixes: QTBUG-114998 Change-Id: If4d3b48b3d0352a0359f6962d4eb1bc2e1e67c95 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit 0f05ed1e01cdbd1dbef3097d0d203c9926d0d501) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add Todo List example to Mobile categoryKimmo Leppälä2023-08-111-0/+1
| | | | | | | | | | | In addition to Application Example category, Todo List is added to Mobile category Change-Id: Iabad05dfe24ecc9e9f188495b5aba65ec4132eda Reviewed-by: Kai Köhne <kai.koehne@qt.io> Reviewed-by: Tuukka Turunen <tuukka.turunen@qt.io> (cherry picked from commit bdc0409d1fad7dbd1aab7724aa7f7abbe4cc0a69) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CMake: Stop building FX_Material_Showroom exampleAlexandru Croitor2023-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | It creates a duplicate 'content' target which conflicts with a 'content' target created by the thermostat example, which fails configuration of qt5.git top-level builds. This example is not built in dev and 6.5.2 branches, so to unblock 6.6 and 6.5 submodule updates, align the code, and stop building the example in those branches as well. Someone will have to figure out if both need to be built and change the target names accordingly to prevent duplicate target errors. Amends 3f9c25bdb70e984e2bda6ea27121ff0a12a332f6 Amends c77719ff5d44947acc85daf794bcbd3f9f8c0702 Fixes: QTBUG-115343 Change-Id: Ia58949a9dfd62d044b54bc1ca6ad0e8a7c2a1dea Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 8941da8b40039ad7ce74ac400e47838ac30ac8a6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix cmake install TARGETS statement in todolist demoAxel Spoerl2023-07-201-1/+1
| | | | | | | | | | | | | | | | | The TARGETS statement was given ${CMAKE_PROJECT_NAME} as an argument. That works in a stand alone build of the demo. If the demo is compiled as part of a toplevel or qtdoc build, the project name will be "Qt". That doesn't exist and breaks the build. This patch changes the argument to "ToDoListApp". Fixes: QTBUG-114592 Change-Id: Ic5311718cbb6250175355e60b0b6eebaf1165e8b Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit 5c2d5701b5fc2ee5a6ad931a06a89b97c08f173a) Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 6b7047f7d94c6d6f5f6e813a27a8bf269cb6f3f8) Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix build of FX Material Showroom example on WindowsKai Köhne2023-07-1939-42/+3315
| | | | | | | | | | | | | | | | | * Shorten the file names for *plugin.cpp by specifying a CLASS_NAME. * Add sources from Qt Design Studio components instead of cloning from qtquickdesigner-components.git. This avoids issues with the very deep directory structure of above repository. While at it, move also the MaterialBundle plugin from asset_imports to just imports. Task-number: QTBUG-115108 Change-Id: I63d5fde474fbda93cfabec20e2349854755cc4cb Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> (cherry picked from commit a57fb4207057065360f8e9792727a67f2f9b5031)
* FX & Material showroom demo: Use correct \example pathTopi Reinio2023-07-191-1/+1
| | | | | | | | | | | | The argument passed to \example must be a valid path to the example project directory, relative to 'exampledirs' variable in .qdocconf Change-Id: I94cdb7ddbce899d45c59af278d71c49cb0580f0e Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> (cherry picked from commit e4d17474a23dd3de268b37a00eef88500c0423ae) Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Fix FX Material Showroom documentation image suffixKimmo Leppälä2023-07-191-1/+1
| | | | | | Change-Id: Ia4aa1ea7181dd803afc42bcaba61aaf7e58391f7 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> (cherry picked from commit 0fec2b85bc9cf329968616e28cce98169efd2a45)
* FxMaterialShowroomApp: Fix broken qmlcomponents fileAxel Spoerl2023-07-191-2/+2
| | | | | | | | | | | | | | | CMAKE_PROJECT_NAME is used in the qmplcomponents file, referenced by CMakeLists.txt. This is bad practice for Qt examples, which works only if the example is built standalone. If it is built as a part of a submodule with examples, it expands into "Qt". This doesn't exist and breaks the build. This patch replaces the variable with FxMaterialShowroomApp. Change-Id: I1aad1218d44103ae6227f064121be1ea2a523ebe Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit d4c2b890949d4fdff97c706cff8064765480f810) Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
* Add FX & Material showroom demoMahmoud Badri2023-07-19126-0/+12600
| | | | | | | Fixes: QTBUG-113477 Change-Id: I2cdd68027224516b6e6ddacad99d06b6a4dc1ba0 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> (cherry picked from commit c77719ff5d44947acc85daf794bcbd3f9f8c0702)
* Dice example: remove workaroundJonas Karlsson2023-07-171-7/+3
| | | | | | | | | | | The bug is fixed but the workaround was actually not needed to begin with since the bug only affects nodes with a position and a parent with scale which is not the case here. Change-Id: I99766586d2671b3286085d54c7cf8cca7e0f9b7b Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 41625c4721589bf2e5027988a13f6738430c6f2d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* MediaPlayer example: Use camel case for menu entriesKai Köhne2023-06-301-1/+1
| | | | | | | | Change-Id: If56f3014d3550ef237cb7ed513234a7b5dfc23aa Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> (cherry picked from commit 8c0e7106504951a5eabe9cb1a5bb6516106d4197) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Dice example: Add tagsKai Köhne2023-06-281-0/+1
| | | | | | | Change-Id: If2dc727786ae7e4ca582fb7268a96c8e2657b875 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> (cherry picked from commit 68e3af8836fa69456dc4c0d22d20435dc6614370) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Documentviewer demo: Add icons explicitlyAxel Spoerl2023-06-277-59/+65
| | | | | | | | | | | | | | | Standard icons, selected from the UI designer in Creator, are not available on macOS. They are be displayed empty. This is a manual backport of 6cefb818b3473b4eaab9bf7106e76e65841ab571, shipping the required icons manually. Task-number: QTCREATORBUG-29330 Fixes: QTBUG-114848 Change-Id: I9977365d02cb6526128ea4827346b6ac917e52bc Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 616f3dc4f96c34d4d6d76cc5d9ecb08122a59fc1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Reformat .qml files in dice exampleKai Köhne2023-06-226-40/+32
| | | | | | | | | Use qmlformat -i on all files. Change-Id: I163d1faf281fc085b824e092056cebe57fce5a6b Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 67d28856054a5a3596750a95718f53eef388f976) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* thermostat demo: Fix icon pathAxel Spoerl2023-06-221-2/+2
| | | | | | | | | | | | | | When the path for CustomControls was changed into ThermostatCustomControls, the icon paths in qt_attribution.json were not adapted. This patch updaes it. Task-number: QTBUG-114759 Change-Id: I8ec1ea85612f4a70d6baa99223e15a6c12ae4891 Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io> (cherry picked from commit fcfcd657f5747793a89180a30ada37f91d3eef82) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix license specification for example sourcesKai Köhne2023-06-212-2/+2
| | | | | | | | | Examples should be available under Commercial/BSD-3-Clause, not GPL. Change-Id: I0599bd69a7b850cdae04c26f8af0eb98a6583221 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 1740e270544eed31e1fd6b63ec056814961d7d69) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Rename CustomControls module in thermostat exampleKamil Hajdukiewicz2023-06-2133-21/+21
| | | | | | | | | | | | | | The name of the module is changed from CustomControls to ThermostatCustomControls due build errors. Fixes: QTBUG-114759 Change-Id: I86cf9830700b867a4a690d0f41841417bfa1efc1 Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: <kaj@spyro-soft.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 8ce518b89879d418e4cf3ad0030b636879657861) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Thermostat, TODO List: Remove unused QDS componentsKai Köhne2023-06-215-92/+0
| | | | | | | | | | | | | The QDS components are built by default, which generates a lot of warnings by qmlsc, and also creates issues on Windows due to too long paths. But they are not used, so we might as well remove them from the examples. Change-Id: Ie932b05c88f07793a95e4980cb4f63aa0a58229e Reviewed-by: <kaj@spyro-soft.com> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 1ac93ad9caf3acc86e021bdfea7e4230c2986880) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add the 'dice' exampleJonas Karlsson2023-06-2126-0/+760
| | | | | | | | Fixes: QTBUG-113600 Change-Id: I13b8327f2dcf3e7eaec80c7c10038b22a1656df3 Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 34ecd600380c65f65f46e9fe86cfcbb9186b20a1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Resolve a duplicate target name issueAmir Masoud Abdol2023-06-214-6/+6
| | | | | | | | | Both robotarm, and todolist examples were creating `content` target which was breaking the build if both examples were activated. Change-Id: I0922765526f2fca861c16b1ced4f1c040c104adc Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io> (cherry picked from commit 8b6976b931e81f9d2aa9f31fb09bcb20a5a29cc2)
* Revamp Thermostat example 2Kamil Hajdukiewicz2023-06-20130-0/+7516
| | | | | | | | | | | | | | | | | | | | | The new responsive design of Thermostat Example is implemented. The application is prepared to look good on desktop, mobile and small displays. In the current state only part of the application is prepared. Schedule View is not ready. What is done: 1. Rooms View 2. Thermostat Control View 3. Statistics View 4. Dark/Light mode Change-Id: I52d07b7001b1f78025d74ab827e58b5d23b2dedb Reviewed-by: <kaj@spyro-soft.com> Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io> (cherry picked from commit 3f9c25bdb70e984e2bda6ea27121ff0a12a332f6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix Calqlatr example to follow Qt6 example guidelineKimmo Leppälä2023-06-195-5/+11
| | | | | | | | | | | | | Set basic style for the application to get rid of "The current style does not support customization of this control" warning in CalculatorButton.qml. Task-number: QTBUG-108751 Change-Id: Id9b8305238404088fd24d4e128a753728558f10a Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 7c15387604598d80f1a04befe26589a996086a71) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Add ToDoList example to application categoryKimmo Leppälä2023-06-191-0/+1
| | | | | | | | Change-Id: I0c6a1278bd93919e3aeb63f3c87f717d13dbb76b Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 91e3396421eff3622141f01b2b905eeab8583138) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use the target name explicitly instead of ${CMAKE_PROJECT_NAME}Amir Masoud Abdol2023-06-171-2/+2
| | | | | | | | | | | Otherwise, this can break the top-level build with: `install TARGETS given target "Qt" which does not exist.` Change-Id: I503319fed3c5d5b49fda38a5c6d55db270793b8f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 6c889caceb01df53a61ba1884dae639a33749573) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Rename mediaplayer demo/example to MediaPlayerAppAmir Masoud Abdol2023-06-171-5/+5
| | | | | | | | | | | | The same example exists in qtmultimedia, and it is using a similar target name as well, which can breaks the top-level build, so we need a new name for it. I thought since this is a demo project, and it's an app, we can name it like the ToDoListApp. Change-Id: Ia91786f7a32e1263157091b10683cd5294c292a2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit ee0cdb359c4d6c71a07d5a649b9337512286aae1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Adjust the path for qtdoc/demosAmir Masoud Abdol2023-06-171-1/+1
| | | | | | | Change-Id: I25ee66a178db832554276ef66dcd1f94ab925240 Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 6d8609cee2807157d553145c819be84b2b3b0708) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* To Do List example: Fix image file extensionsTopi Reinio2023-06-113-0/+0
| | | | | | | | | | | | | Fixes documentation warnings: (qdoc) warning: Missing image: iOS_Light.png (qdoc) warning: Missing image: iOS_Dark.png (qdoc) warning: Missing image: Settings_iOS.png Change-Id: I0f2262a825457b2ec99e436060803f193722f31c Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit a2211164aaccd46d16a7859eb4c42b45ede6ccf3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Refresh 'ToDoList' exampleQt Submodule Update Bot2023-06-09118-0/+4283
| | | | | | | | | | | | | | | The whole design of the example was changed. The app was created in Qt DesignStudio. Some new functionalities were implemented eg. calendar, clock. The application will use "https://www.boredapi.com" to get random tasks. It will also use local storage for saving list. Tested on Android, Windows, macOS, iOS. Change-Id: Ieb688d4a4606b4617b63342b749099528021054c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3388603fb667acc0626d2499b4a9a0dfcecaa537) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix documentation issuesTopi Reinio2023-06-091-4/+4
| | | | | | | | | | | | | * Add missing */ in external-resources.qdoc * Remove linking to 3rd party attribution pages that no longer exist * Fix Media Player Example documentation * Remove duplicate \example command * Fix \image file name Change-Id: Ie26e4cc9105a5c728de2ec18b514b5d5ba3d61b9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 48cc7d605e04133eac03b20d5ff89faa0812c1ff) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Refresh the 'Multimedia Player' exampleKamil Hajdukiewicz2023-06-0873-0/+2170
| | | | | | | | | | | | | | Design of MultimediaPlayer example was refreshed. New icons, colors, application structure were provided. Some new functionalities were introduced to the sample: playlist, shuffle, loop, dark mode. Tested on Windows, Android Emulator, macOs, iOS emulator. Change-Id: I38a8e203021edc97b70a4ab8f0d8d83c6d5ae45b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit d7554ab7004552f50ed72794c29976ed4ea2137a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove PhotoViewer exampleKimmo Leppälä2023-05-1623-1071/+0
| | | | | | | | Fixes: QTBUG-113593 Change-Id: Idafd79a140067fac9c9f27440f4f43453e2e2ddf Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 117382f2615d1e16bfa437b1ccc388fb77c99bf2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Move robotarm example from quick3d to qtdocKimmo Leppälä2023-05-0944-0/+1348
| | | | | | | Change-Id: Iac113bc7ed773f291ef09ebe144e1de1e0e58136 Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit 02efcba73d7f7d1d1eb49a6741558b2b6528838b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Drop: 'Qt Demo' from Document Viewer example nameKai Köhne2023-05-051-2/+2
| | | | | | | | | | | | | Follow the naming style of the other examples, and just name the example page 'Document Viewer'. Also remove the page from the group mainwindow-classes, at is - quite evidently - not a class. Instead, add it to the list of widgets examples. Change-Id: Ic54640a2da4e549e389056e6c504238040d24985 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit f6f1ee391326d77cf68a54538aebabbef8e4b5dc) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Use private linkage where possibleKai Köhne2023-05-038-10/+10
| | | | | | | Change-Id: Ib5e0b7c7ace6f399b4742eec5879eb06cf67debf Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 5d65a35fc977cb3edb24c1d1542fe1632e847ea5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Examples: Use unversioned CMake commandsKai Köhne2023-05-0310-10/+10
| | | | | | | | | | | | | Prefer unversioned commands over qt6_ ones - even though the target-based qt_add_resources command is actually new in Qt 6. But we will evolve the API also between major Qt versions, so it's better to work with the Qt policies mechanism instead of relying on version numbers in the command API. Change-Id: If302abb1f22a7ab96c98a8ad2e9c871b9bedb0e9 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit d02810b25f5b6eeacec1cbe4036c472d38734ed0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use versioned CMake targets for Qt modulesKai Köhne2023-05-0314-63/+63
| | | | | | | | | | | Use e.g. Qt6::Core instead of Qt::Core. This is better matching the find_package(Qt6 ...) call, and also avoids issues that the versionless targets have. Task-number: QTBUG-113277 Change-Id: I9bc7963d8524ef2ab061e32aef428711646247a7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 835f15cfbb628938fcd7bfa4e334dec6199e54c6)
* Doc: Add new Document Viewer example to Application ExamplesKai Köhne2023-05-021-0/+1
| | | | | | | Change-Id: Iad807bff4323c0ffaf924565ae67d49ebca786be Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 3705d584d766098dc75fdcc87eb03658ae77be44) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>