aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove qmllint warnings in particle emitters exampleOliver Eftevaag2023-04-192-11/+7
| | | | | | Pick-to: 6.5 Change-Id: Ibdf9bb196454bcfa4c46d237aa69928d3bc9a7a4 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* fix qmllint warnings in particle attractors exampleOliver Eftevaag2023-04-194-5/+2
| | | | | | Pick-to: 6.5 Change-Id: Ic3df17364aacd7aa02e843fd971470aa861df036 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Imageelements example: Update by coding conventions from official docBumjoon Park2023-04-0413-71/+185
| | | | | | | | | | - Fix qmllint warning. - string are translated. - JS statements no longer end with semi-colon. Pick-to: 6.5 Change-Id: I39236ffa20fd1131609f170c64ecb4e68273539a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Use qsTr() for user facing strings in particle attractors exampleOliver Eftevaag2023-03-311-3/+3
| | | | | | | Pick-to: 6.5 Change-Id: I8025b5dde59706827cb1bf546d03c6088f4600de Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Keyinteraction example: Update by coding conventions from official docBumjoon Park2023-03-276-54/+204
| | | | | | | | | | - string are translated. - JS statements no longer end with semi-colon. - Fix qmllint warning. Pick-to: 6.5 6.5.0 Change-Id: I83f2b702c9bb9f02f86728e2277297272cd75251 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Positioners example: Update by coding conventions from official docBumjoon Park2023-03-233-59/+199
| | | | | | | | | - string are translated. - JS statements no longer end with semi-colon. Pick-to: 6.5 6.5.0 Change-Id: I2c8077cea2bd55ec6a407eca85394a667c6a289e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Fix documentation warningsTopi Reinio2023-03-203-3/+3
| | | | | | | | | | * Remove \generatelist example[files|images] commands, they do not produce any output, only warnings. * Add missing full stop to \brief descriptions. Pick-to: 6.5 Change-Id: I90c67b8c3f3bbe901fa083f781e9056da7763671 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Dynamicview example: Update by coding conventions from official docBumjoon Park2023-03-209-173/+279
| | | | | | | | | | | - Fix qmllint warning. - Fix runtime warning. - string are translated. - JS statements no longer end with semi-colon. Pick-to: 6.5 6.5.0 Change-Id: I33958c414537aff32814f4ef2f04c73a03dc5295 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* MouseArea example: Update by coding conventions from official docBumjoon Park2023-03-152-55/+86
| | | | | | | | | | - Fix qmllint warning. - string are translated. - JS statements no longer end with semi-colon. Pick-to: 6.5 6.5.0 Change-Id: I379b3fe961c4491ab29ae8f09fc2e53c8f405c5e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Shapes example: adhere to guidelinesOliver Eftevaag2023-03-1022-317/+759
| | | | | | | | | | | | | - Fix all qmllint warnings. (except for main.qml, interactive.qml, and sampling.qml) - Translate user facing strings when it makes sense to do so. - Mark readonly properties as 'readonly'. - Avoid binding on multiple properties on a single line. (except for tiger.qml). Pick-to: 6.5 Change-Id: Idbf8a472ca5ba5385d1368aadd608e95231a07f0 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Text example: adhere to guidelinesOliver Eftevaag2023-03-107-47/+135
| | | | | | | | | | | - mark readonly properties as readonly. - Use qsTr() on user facing strings that would be sensible to localize. - Removed unused lines of code. - Separate lines with multiple bindings into multiple lines instead. Pick-to: 6.5 Change-Id: I9664cc2291be2f642dc2d9d27b6c356880a491c7 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* handlers example: Add TapHandler single/doubleTapped signal feedbackShawn Rutledge2023-03-101-6/+28
| | | | | | | | | | | | | | | | | | | | | - reserve the borderBlink feedback for these signals: the flashAnimation feedback is enough to show the regular tapped signal - make the flashing border more obvious: wider on a lighter background - make the border even wider for a double-tap - just blink once; the 3-blink animation looked nice, like classic macOS, but was a bit disorienting if you are tapping multiple times and trying to count which signals got emitted - stop the animation before starting the double-tap animation, to avoid missing it: usually the double-click interval is less than 500ms Followup to d3f2c6ac4205bbe5a1c7174965dbce6f90972be3 Task-number: QTBUG-65088 Task-number: QTBUG-107264 Pick-to: 6.5 Change-Id: Ia2f78a7d1e758fc717078b6aa44a0f6716afd227 Reviewed-by: Matthias Rauter <matthias.rauter@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Adapt quick/window example to AUTO_RESOURCE_PREFIXTor Arne Vestbø2023-03-071-1/+1
| | | | | | | | | The source code was changed in d270c51f812b5f0ffe6208b38c8ea0e898535e50 but without updating the qrc file. Pick-to: 6.5 Change-Id: I7229c04611e306bf6867caad596cb4a619ce3624 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add embeddedinwidgets example doc pageLaszlo Agocs2023-03-073-0/+47
| | | | | | | Pick-to: 6.5 Change-Id: If7c2473695739d743179b143ccf84433b7f5ddbf Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Revive embeddedinwidgets exampleLaszlo Agocs2023-03-071-0/+2
| | | | | | | Pick-to: 6.5 Change-Id: Id303cb014546db76b15a15ede83c8e1862756ef4 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Add doc page for MultiEffect examplesLaszlo Agocs2023-03-074-0/+30
| | | | | | | | | MultiEffect is a new feature in Qt 6.5 and its examples must have at least a basic documentation page. Pick-to: 6.5 6.5.0 Change-Id: Ice08b1271aff3cf13d6be700bb4a86239bb46f7d Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
* Drag and Drop example: Improve usage of best practicesBumjoon Park2023-03-066-26/+61
| | | | | | | | | | | | | Update the example by our coding conventions from our official documentation. - Fix qmllint warning. - string are translated. - JS statements no longer end with semi-colon. Pick-to: 6.5 6.5.0 Change-Id: Ibdf6879e6474a976bbcff5d5e3c28c98db55e9e0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Example: no longer use hardcoded colors and make text readableThomas Zander2023-03-032-3/+4
| | | | | | | | | | | In a dark-theme setup, the hardcoded backgrounds of white ended up with a white text on white background. This changes things to simply use the basic palette also used by the Label and CheckBox components. Change-Id: I2a983dc1b57b05559dcb3c032e587ef0f65c4a1c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Document the Pointer Handlers exampleShawn Rutledge2023-03-0211-0/+170
| | | | | | | | | | | 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 Pick-to: 6.2 6.4 6.5 Fixes: QTBUG-96915 Change-Id: Iee2f4ef774de7862d93c7e4cdf7b2b5e0553bec4 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
* Canvas example: Improve usage of best practicesOliver Eftevaag2023-03-029-431/+658
| | | | | | | | | | | | | | | | | This commit updates the example in order to adopt as many best practices and follow our coding conventions from our official documentation. - qmllint will report no erros with this patch (As long as the shared module is imported). - strings are translated. - JS statements no longer end with semi-colon. - Removed unused properties and marked those that are only read as readonly Pick-to: 6.5 6.5.0 Change-Id: Ibe0d0750d48018b618a5cf8c3bcecb7e29488274 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Localstorage example: Follow coding conventions betterOliver Eftevaag2023-03-024-52/+58
| | | | | | | | | | - Use let/const instead of var, when possible. - Removed all warnings generated by qmllint. - Better null checks with null coalescing operator Pick-to: 6.5 6.5.0 Change-Id: I4b1b3826ee01cb591cf4a92fef68957964554641 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* PointerHanders FakeFlickable: Fix ambiguous referencesOliver Eftevaag2023-02-241-2/+2
| | | | | | | | | | The max property is declared inside the "knob" rectangle. The id of the rectangle should be used, in order to reference it correctly. Pick-to: 6.5 Change-Id: I157ab9c3ba687f6e0998f907f064014d03c5902f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* quickwidget and tableview: Make example cmake files adhere to guidelinesOliver Eftevaag2023-02-214-14/+12
| | | | | | | | | | | | - Add qt_standard_project_setup(REQUIRES 6.5) - Use PRIVATE linkage - Set WIN32 and MACOSX_BUNDLE properties directly in qt_add_executable() amends 94e3cf3d95eda294cd578bea01c04e9527a9fd68 Pick-to: 6.5 Change-Id: Ic02b7b15a8aea9387d93ab024f05feeab8a84016 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Replace AUTO_RESOURCE_PREFIX with Qt CMake Policy in examples, testsAmir Masoud Abdol2023-02-2150-83/+63
| | | | | | | | | | | | | | | | Every instance of AUTO_RESOURCE_PREFIX has been replaced by either qt_standard_project_setup(REQUIRES 6.5) or with qt_policy(SET QTP0001 NEW), mainly in tests. In addition, I added a warning message for the case where AUTO_RESOURCE_PREFIX is used. Pick-to: 6.5 Task-number: QTBUG-96233 Change-Id: I323a15e9d0bb5fe6ba649365314af9fc2ad67bda Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Simplify dragNDrop example and remove unneeded aliasThomas Zander2023-02-211-11/+1
| | | | | | Pick-to: 6.2 6.4 6.5 Change-Id: Ia0e5d5dc46a60b6d88864b3250f8cf91b03b897f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Use SequentialAnimation.loops in FlashAnimation in handlers exampleShawn Rutledge2023-02-211-7/+1
| | | | | | | | It looks less tedious. Amends 8503f884bbdb50c4bebc8f8a9fce05275b0612b1 Pick-to: 6.2 6.4 6.5 Change-Id: I85690e6a8ceac4ebec1c00bcbbf6a81108096e6c Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Update the custom MultiEffectKaj Grönholm2023-02-163-44/+49
| | | | | | | | | | Re-export the example custom MultiEffect component with the latest QQEM version. Also add copyright headings into the project. Task-number: QTBUG-111150 Pick-to: 6.5 Change-Id: I27f6ad2edc220a7f5f625f6dae23159318fa20e2 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
* Add custom MultiEffect into testbed exampleKaj Grönholm2023-02-0813-3/+602
| | | | | | | | | | | 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>
* Examples: Add missing include guardsFriedemann Kleint2023-02-031-1/+5
| | | | | | | Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: I968865958770f6282ab6f79dc9b2becf4f7795af Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* CMake: Allow omitting the version of QML modulesUlf Hermann2023-01-2767-67/+0
| | | | | | | | | | | | | | | | | Also, drop all the VERSION 1.0 lines from the examples and tests. 1.0 is actually a bad default version since it's before all the Qt versions. [ChangeLog][QML] You can now omit the VERSION argument to qt_add_qml_module(). This will automatically generate the highest possible version. Pick-to: 6.5 Task-number: QTBUG-99146 Change-Id: Ic10ec69b87c224e0e94e1785f65653815d4c778c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
* Adjust the MultiEffect APIKaj Grönholm2023-01-268-77/+77
| | | | | | | | | | | | Based on the API review, adjust the MultiEffect API. - Change mask threshold Low/Up to Min/Max and for spread AtMin/AtMax. - Change colorize to colorization so it is more symmetric with brightness, saturation etc. Task-number: QTBUG-109557 Pick-to: 6.5 Change-Id: I96ff2a13e20405998c5ed0cb38ad3b5911daf94c Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Quick scenegraph examples: use qsTr() for user facing stringsOliver Eftevaag2023-01-179-17/+15
| | | | | | | | All user facing strings should use qsTr() Pick-to: 6.5 Change-Id: I2f776fe088b05bb046ceafbc6c29528212a2c1a0 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Remove forgotten examples in the 'customitems' dirOliver Eftevaag2023-01-1746-1741/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the following examples in particular: - progressbar - scrollbar - searchbox - slideswitch - spinner - tabwidget The reason for removing them is that they've clearly been forgotten, and no longer serve a purpose. They can only be built with qmake, since they're missing a CMakeLists.txt file, and even if you try to build them, the build will fail since the DECLARATIVE_EXAMPLE_MAIN macro in shared.h were at some point updated to prepend the resource patch to have the same prefix that the AUTO_RESOURCE_PREFIX cmake flag provides. Which had the side effect of causing these examples to no longer build out of the box. The purpose of the examples has been to demonstrate how to make custom controls. Today we recommend users to instead make custom styles for QQC2, which the flatstyle example demonstrate how to do. Pick-to: 6.5 Change-Id: I26af18ecaef836495f0c2a7e376268b1f956b1a9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Quick examples: Modernize cmake files according to our guidelinesOliver Eftevaag2023-01-1645-248/+170
| | | | | | | | | | | | | | | | The following changes are made to the CMakeLists.txt files in all quick examples: - Use PRIVATE linkage when possible. - Use qt_standard_project_setup() - Set WIN32 and MACOSX_BUNDLE in qt_add_executable() instead of set_target_properties() Pick-to: 6.5 Change-Id: I18217585aec56794b327f103d6959879df59d68a Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Remove spurious qDebug() statementOliver Eftevaag2023-01-111-2/+0
| | | | | | | | The qDebug() doesn't add any value to the example. Fixes: 6.5 Change-Id: I73c1af251f342e3ed542f683dd0b3d71d92a3f58 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Fix layouts and localstorage examplesOliver Eftevaag2023-01-112-4/+4
| | | | | | | | | | The layouts and localstorage examples wouldn't work properly, since the path to the initial qml file given to the engine didn't start with "qrc:/qt/qml" Pick-to: 6.5 Change-Id: I26b5bbf3f6e7078c4f4aba6bab6fc06451b49082 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Make quick examples that rely on the shared files build with qmake againOliver Eftevaag2023-01-111-1/+1
| | | | | | | | | | | | | | | In d270c51f812b5f0ffe6208b38c8ea0e898535e50 the DECLARATIVE_EXAMPLE_MAIN macro was modified to prepend the "qrc:/qt/qml" prefix to file paths that should be loaded by the engine. But the patch forgot to update the shared.qrc prefix, which means that the examples that relied on the shared module, would no longer build out-of-the-box with qmake. This patch solve the issue, so that the examples work with qmake once again. Pick-to: 6.5 Change-Id: I677c1e61423cf98c6a1030ce591707888456ef19 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Use inline component in sidebar example rather than LoaderShawn Rutledge2023-01-051-64/+57
| | | | | | | | | | | Originally in ca9e2a0d7488cbbb94d8343c43eb49c6ee5f6519 I used Loader as a way of reusing some content in two places in one QML file, not necessarily to test hover behavior with Loader. Inline components are a little cleaner. Pick-to: 6.2 6.4 6.5 Change-Id: Ib064bdb460704bec0c714550d8935dcef8af0637 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Examples: Update custom QSGMaterialShader correctlySze Howe Koh2023-01-041-0/+1
| | | | | | Pick-to: 6.5 6.4 6.2 Change-Id: I469c4f813f006ca47f9660a0c9ccfa30bbe89dc6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* map example: don't restrict pinch-zoom to centerShawn Rutledge2023-01-021-2/+0
| | | | | | | | | | A big advantage of PinchHandler over PinchArea is the ability to zoom into a particular location in the target Item, so let's not fail to show that off. Pick-to: 6.2 6.4 6.5 Change-Id: I0f22abff99bdc60bac27e72fd5f66be4796794df Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Improve blur items sizingKaj Grönholm2022-12-203-6/+6
| | | | | | | | | | | | | | | | MultiEffect uses max 5 blur items. So to be able to divide first one 4 times without rounding, first one needs to be rounded up to next 2^4 = 16 (16,8,4,2,1). Make the first blurred item size half of the source size (plus the rounding). This increases the blur amount and performance and decreases texture memory usage and quality. Based on testing it seemes like a good compromize. Also resize bluritems only when needed. Pick-to: 6.5 Task-number: QTBUG-109490 Change-Id: I907b48904d3f9b0414704026cc1f07c02c49a8c7 Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
* Add PinchHandler.scaleAxis, rotationAxis; hold values in axesShawn Rutledge2022-12-101-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pointer Handlers that manipulate target item properties should now use QQuickDragAxis consistently to: - enforce minimum and maximum values - hold the persistent and active values - make those available via properties - emit a new activeValueChanged(delta) signal when the value changes, so that it's possible to incrementally update a target item property in JS (onValueDelta: target.property += delta) In the pinchHandler.qml example, you can use the PinchHandler to adjust 4 properties of one Rectangle independently (it requires coordination). m_boundedActiveValue controls whether m_activeValue will be kept between minimum and maximum. For rotation, tst_QQuickPinchHandler::scaleNativeGesture() expects it to be, although that seems questionable now, and may be addressed later. [ChangeLog][QtQuick][Event Handlers] PinchHandler now has scaleAxis and rotationAxis grouped properties, alongside the existing xAxis and yAxis; and all of these now have activeValue and persistentValue properties. The activeValueChanged signal includes a delta value, giving the incremental change since the previous activeValue. The persistentValue is settable, in case some target item property can be adjusted in multiple ways: the handler's stored value can then be synced up with the item property value after each external change. These features are also added to DragHandler's xAxis and yAxis properties. Task-number: QTBUG-68108 Task-number: QTBUG-76380 Task-number: QTBUG-76379 Task-number: QTBUG-94168 Change-Id: I78a5b43e9ba580448ef05054b6c4bc71b1834dd6 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Add QtQuick.Effects & MultiEffectKaj Grönholm2022-12-0756-1/+2714
| | | | | | | | | | | | | | | | | | | Add new QtQuick.Effects plugin for post-processing effects. The plan is to add essential effects directly into QtQuick, not to duplicate Qt Graphical Effects. Initially the plugin will contain MultiEffect which supports 7 different effects in a single ShaderEffect (brightness, contrast, saturation, colorize, blur, shadow, mask). Combining multiple effects into a single shader is more performant than chaining multiple effect items. Depending on used features, the most optimal shader gets selected. Includes two examples demonstrating the usage of MultiEffect. Task-number: QTBUG-106651 Change-Id: I35865030fd4b7a1f657146cee03b195451545bc6 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
* Fix typo in rendercontrol_d3d11 exampleLaszlo Agocs2022-11-031-1/+1
| | | | | | | Clearly nobody has run this in recent history. Change-Id: I77aa8acc1de1346ded034ccd47682afaba2efe2b Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* scenegraph: Add example for QSGRenderNode based RHI renderingBen Fletcher2022-11-0110-0/+586
| | | | | | | | | Add an example to demonstrate RHI rendering in the scenegraph with a custom QSGRenderNode. Works for Vulkan/OpenGL/Metal/D3D rendering directly, and into a layer. Change-Id: I0333f63fd729312b71e51f5b6376e46f8afe1fe6 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* GameOfLife example: Fix qmllint warningsFabian Kosmale2022-10-262-6/+3
| | | | | | | | | | | | | GameOfLifeModel is a QAIM, but qmllint does not know what QAIM is by default. Make it aware of it by explicitly depending on QtQml.Models. Then fix the Layout related warnings found by the Quick lint plugin: - remove the superfluous x and y values in the slider, - and remove the empty padding Item in lieu of setting Layout.rightMargin on the Button to achieve the same effect. Change-Id: I2ef6f9a1ffa276b66415ce3374eb41c34d8673b6 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
* Fix TypeError in dynamicview1 exampleSami Varanka2022-10-191-1/+7
| | | | | | | | | | | | Rectangle's parent was null when setting left and right anchors. Use pragma ComponentBehavior: Bound and required properties instead. Pick-to: 6.4 Fixes: QTBUG-106645 Change-Id: Ie5b8c3a20948799363fad1332113884612d18968 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Add TapHandler.exclusiveSignals to enable single/double tap exclusivityShawn Rutledge2022-10-192-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If exclusiveSignals == NotExclusive (the default), behavior remains as it was: singleTapped() and doubleTapped() are emitted as the taps occur, so it's not very useful to react on singleTapped() if you mean to distinguish these two cases. If exclusiveSignals == SingleTap, the doubleTapped signal will not be emitted at all, and therefore singleTapped can be emitted immediately and unambiguously. If exclusiveSignals == DoubleTap, the singleTapped signal will not be emitted at all, and therefore doubleTapped can be emitted immediately and unambiguously. If exclusiveSignals == SingleTap | DoubleTap, we must wait qApp->styleHints()->mouseDoubleClickInterval() milliseconds after a tap is detected before emitting either signal, so that they are distinct and can be used to drive behavior that should not occur in other cases. A triple-tap will not trigger either signal. [ChangeLog][QtQuick][Event Handlers] TapHandler.exclusiveSignals now lets you make the singleTapped and doubleTapped signals exclusive. Task-number: QTBUG-65088 Fixes: QTBUG-107264 Change-Id: Ifb2c4b72759246c64b3bfa2f776c28266806b985 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Doc: Remove usages of the second argument of a "\page" commandLuca Di Sera2022-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The "\page" command for QDoc, used to construct a standalone documentation page in the output documentation of a project, was able to take a second argument, apart from the first argument representing the name for the generated documentation page, that roughly represented the type of the page that was to be generated. This second argument was not actually used by QDoc, such that it had no meaningful effect. QDoc was recently modified to not support this second argument, internally, and officially removed its use. For technical legacy reason, QDoc will still support the usage of a second argument for a "\page" command, albeit it will do nothing, as before. To avoid confusion for future readers who might not be aware of the history of the "\page" argument and that will not find an explanation in QDoc's documentation anymore, the usages of the second argument in "\page" commands are now removed. Change-Id: I0241ffa17d658245516f725e64048e332cbccd42 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Add live property to QQuickItem layerKristoffer Skau2022-09-0810-1/+190
| | | | | | | | | | | | QQuickItemLayer now has a live property that can be set to determine if its contents should change whenever the item updates. This enables variable refresh rate for quick items. [ChangeLog] Added live property to QQuickItem layer. Fixes: QTBUG-77343 Change-Id: I8bf7e7af4cfed6deef2253d346bb0b72d0fef66e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>