summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* QV4: Sequence/ListWrapper: implement virtualGetLengthFabian Kosmale2023-03-314-0/+17
| | | | | | | | | Both types can provide a natural implementation for virtualGetLength, which is much more efficient than going through the base implementation in QV4::Object. Change-Id: Iefc870451e1ad54c6dbfd6f73f6a5ff9b7552871 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Docs: fix warning from trying to link to "string" documentationVolker Hilsheimer2023-03-311-1/+1
| | | | | | | | We don't document that type, only mention that we extend it with `arg`. Pick-to: 6.5 Change-Id: I4acf48bba2d2ed5d1bb6902615c6ba50bbf9feb7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Doc: Add QQEM link to Qt Quick tools and utilities pageMats Honkamaa2023-03-311-0/+6
| | | | | | | | Task-number: QTBUG-112420 Pick-to: 6.5 Change-Id: Iac9badf2c5303d1510b67eb88aaadd978d28e5ee Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Add an Android TimePickerDialog how-toMitch Curtis2023-03-313-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | This is a highly requested control, yet its implementation varies greatly between devices and platforms. Rather than try to implement an API and UI that fits every use case (and implement whatever infrastructure may be required for offering separate mobile and desktop controls), offer a specialized example: an Android time picker. The goal is to provide a set of QML files that users can simply copy into their projects. The screenshots were taken of the whole window on a MacBook whose display DPR is 2, and then adapted with the following commands: convert uncropped-light.png -crop 870x1030+280+220 how-to-time-picker-light.png convert uncropped-dark.png -crop 870x1030+280+220 how-to-time-picker-dark.png mogrify -resize 50% how-to-time-picker-*.png find . -name "how-to-time-picker-*.png" -exec optipng -o 7 -strip all {} \; Task-number: QTBUG-51167 Task-number: QTBUG-109634 Pick-to: 6.5 Change-Id: Ie11913ba4a83673d7c2467066d9cfef772055c1d Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
* Add coordinate-mapping convenience functions to QQuickVisualTestUtilsMitch Curtis2023-03-312-0/+19
| | | | | | | | | | These make it more convenient to map relative coordinates to the window coordinates expected by QTest functions. Pick-to: 6.5 Change-Id: Ib931af8bda3510209e5ef833e22a0ed3272dde59 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Doc: Revamp "Extending QML" examples into a tutorialOlivier De Cannière2023-03-309-60/+402
| | | | | | | | | | | | | | | | | | | | | | | | The examples in the "Extending QML" series were often redundant with the information of the "Writing QML Extensions with C++" tutorial, had outdated code and sometimes had no documentation. The examples that covered topics not mentioned in the first tutorial were revamped into a second "advanced" tutorial extending the first one. The others were removed. The remaining examples were largely based on the same example code of a birthday party. This code was slightly adapted and separated into 7 states, each building upon the previous, with the code change illustrating the associated feature. A tutorial page, in the style of the first one, was added documenting the different QML features and the required code changes in the example project. Links in the documentation from and to the affected pages were update as best as possible. Pick-to: 6.5 Fixes: QTBUG-111033 Change-Id: I9d97e8b32b128c1624d67525996fa14d493909d3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QmlCompiler: Support more integer typesUlf Hermann2023-03-307-116/+208
| | | | | | | | | | | This adds support for 8- and 16-bit signed and unsigned integer types. The test exposes that the engine fails to correctly convert out of range values when assigning to a 32-bit int property. Fix that as drive-by. Fixes: QTBUG-101634 Change-Id: I0a4177f49ffc062a1f444e30424e94c1f293e70c Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix typos in fileTypeForPathsSami Shalayel2023-03-301-2/+2
| | | | | | | Fix two typos in fileTypeForPath()'s return value. Change-Id: I678fa74385b344e54441b5d9c4078771743d03d0 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Models: Avoid crashes when deleting cache itemsUlf Hermann2023-03-301-7/+16
| | | | | | | | Pick-to: 6.5 6.2 5.15 Fixes: QTBUG-91425 Change-Id: I58cf9ee29922f83fc6621f771b80ed557b31f106 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* TypeResolver: Allow conversions from string to QDate and QTimeOlivier De Cannière2023-03-291-5/+3
| | | | | | | | The conversion from string to QDateTime is already possible. Change-Id: I1100065e424e3873c0723ad0359ed6d3d9984b5e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* QQmlInstantiator: Avoid memory leaksUlf Hermann2023-03-292-10/+11
| | | | | | | | | | | | The instance model really wants to manage its objects' life cycle. Therefore, renounce ownership of the objects when the instantiator is cleared, so that it can do its work. Also, clear() on destruction in order to avoid dangling objects. Fixes: QTBUG-112151 Change-Id: Ieed0108d3c7ca3a47f3b5576e500d6cf3cfcdda4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Remove DomItem::loadFile code-duplication and use correct environmentsSami Shalayel2023-03-295-136/+157
| | | | | | | | | | | | | | | | | | The loadFile overload (in DomItem, DomEnvironment and DomUnivers) for different files (in-memory files and files that needs to be loaded from disk) are either copypasted or just calling the other overload. Encapsulate the file-related arguments of all loadFile overloads into a new struct called FileToLoad, such that the copypasted overloads can be removed. Use the static factory function FileToLoad::fromMemory and FileToLoad::fromFileSystem to create the FileToLoad struct. In addition, FileToLoad allows to specify the environment in which a file should be loaded. Prior this commit, myEnv.loadFile() was creating a new environment for each loaded file. Change-Id: I3b6acb681cb77faefdaa447d985bdfbe4f6a9ce2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Allow disabling internal deferred propertiesHenning Gruendl2023-03-291-3/+9
| | | | | | | | | | | | | Add environment variable to allow disabling internal deferred properties. We should not make generalized group properties that point to different objects immediate. However, for the intended use case it's enough to disable internal deferred properties. Task-number: QDS-8545 Pick-to: 6.5 Change-Id: I22d31587290020ec03274a3373a30be196185b84 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* qmlobject_cast: Optimize for QQuickItemFabian Kosmale2023-03-291-0/+11
| | | | | | | | | | | | | | Before this change, qmlobject_cast was actually slower than qobject_cast for the QQuickItem case. Fix this by basically doing the same check (but using reinterpret_cast instead of static_cast, as we can only forward declare QQuickItem in qqmlgobal_p.h. Change-Id: If98c3047d897671af7d73640e0d523ad7dd3d27a Reviewed-by: Semih Yavuz <semih.yavuz@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Doc: Flatten header structure for 'Import Statements'Kai Köhne2023-03-291-9/+7
| | | | | | | | | | | Remove the top-level 'Import Types' \section2, which is redundant, as there's no second section. This makes sure that the structure of the page is better represented in the side-toc (online version), as it only lists headers of level 1 and 2. Pick-to: 5.15 6.4 6.5 Change-Id: I8a214db6745c9d3054e1aa4277b55b911b605218 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Doc: Use \relates for functions and macros in the global scopeTopi Reinio2023-03-292-0/+5
| | | | | | | | | | | | | This addresses the recent warnings introduced by a change to QDoc: src/qmlmodels/qqmlchangeset_p.h:120: (qdoc) warning: No documentation generated for function 'operator<<' in global scope. src/qml/doc/src/qmlfunctions.qdoc:534: (qdoc) warning: No documentation generated for macro 'QML_SEQUENTIAL_CONTAINER' in global scope. Pick-to: 6.5 Change-Id: I437933f797efc7569eb402e5c31cce8c2ba7d301 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Add implicit height and width to custom dial snippetMatthias Rauter2023-03-291-0/+2
| | | | | | | | | This is required to capture mouse events properly. Similarly handled in basic dial. Pick-to: 6.5 Fixes: QTBUG-108390 Change-Id: If273cc72a25bfea21f08d7c1511f14d7ab9d2fd0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add copyright header to OpacityMask shader codeMatthias Rauter2023-03-291-0/+3
| | | | | | Pick-to: 6.4 6.5 Change-Id: I465f166855955b027b0ce4ba3d09f9fcf994bc1f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* AnchorChanges: Fix restore logicFabian Kosmale2023-03-291-2/+13
| | | | | | | | | | | | | | | | | | | The logic to decide whether a state change triggered a size change. When AnchorChanges did not remove all old anchors, we might end up with an anchor configuration that changes the size of an item (e.g., anchors.left and right being set), even if the new state only adds a single anchor, e.g. anchors.left. Moreover, we need to pass the correct dirty flags to setDirty, otherwise the UI will not actually reflect the state of the Item. As a driveby, fix an accidental double negation of qt_is_nan for height. Fixes: QTBUG-112354 Fixes: QTBUG-106677 Pick-to: 6.5 6.2 Change-Id: I6c456fbdc314672f4fcbe740d941b44183fd5500 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Doc: Rename and rephrase pages for QML {script|type} compilerUlf Hermann2023-03-288-54/+75
| | | | | | | | | | | | | | | | They describe the user facing concepts, not the actual tools. In the case of QML script compiler there are two tools that implement it. Clarify what qmlsc and qmlcachegen actually do and highlight the differences. Also, lower case all references to type compiler and script compiler. They are not product names and therefore should not be upper cased. Pick-to: 6.5 Change-Id: If800d368c904bd829d88b7376b107b1c5351a1ed Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* doc: Use \value rather than \li for enumeration values and constantsShawn Rutledge2023-03-2838-915/+794
| | | | | | Pick-to: 6.2 6.5 Change-Id: Ica8354a53d0a5fb5dd1d8cd5f774dcdc56b6f99a Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* doc: Improve BorderImage; make snippets scaleable, detailed; screenshotsShawn Rutledge2023-03-2811-56/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This started with QTBUG-112322: introduce the border property next to the first snippet where it's used. - Give declarative-scalegrid.png a white background rather than transparent, to be consistent with the screenshots and to look better with a dark documentation style. - Make the snippets resizable so that it's possible to test the effects of the horizontalTileMode and verticalTileMode properties. - Get the borderframe.svg and .png files from the qtdoc repo (which ought to have been in this repo already, but perhaps not). - Resize borderframe.svg to 120x120 and set document size to match (in Inkscape); this makes it possible to use the svg directly in BorderImage, to test that QTBUG-25244 is really fixed. - Make the snippets match the screenshots (all 182px wide, with grey rectangle borders as shown). - It seems our scaling is smoother (less jagged) than in the old screenshots, so the new ones make a better impression. - Add region index labels to snippets and screenshots to be a bit less confusing next to the paragraphs that are talking about "parts of image in regions 2 and 8" and so on. Too bad they have to be so tiny. - Use \value rather than \li for enum values. Amends 1a84b190bd1a2781d03f13fa43ab92bf34809041 Pick-to: 6.2 6.5 Task-number: QTBUG-25244 Fixes: QTBUG-112322 Change-Id: I697ae1356eee62990b7903601cc493a04d3647a2 Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* QtQml: Improve handling of CU's sourceFileIndexUlf Hermann2023-03-282-10/+18
| | | | | | | | | | | | | | In the unlikely case that we get a corrupted CU from a cache file and it still passes the header verification we don't want it to access invalid memory when checking the file name. We also generally want to use uint as index into the string table. A signed integer makes no sense here. Pick-to: 6.5 Coverity-Id: 310389 Change-Id: I12e9b8f39e1d3c68fd701c1ef4f54845ab8c3c12 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* doc: Fix some warnings (broken links)Shawn Rutledge2023-03-2810-47/+45
| | | | | | Change-Id: I9ef36d761860b7b28c5e5e6e37826abfda9d998f Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QV4: Mark singletons as deleted before actually deleting themOlivier De Cannière2023-03-271-10/+21
| | | | | | | | | | | | | | | | | | | | | In cases where a singleton A holds a reference to another singleton B at the end of the program and if B is destroyed before A, then the update from B's destruction updates any binding A has on B. If the binding tries to access B's members then "TypeError: Cannot read property <property_name> of null" happens. This fix marks all singletons as deleted before actually deleting them so that bindings targeting them won't be reevaluated on update. Randomness, likely due to a random seed in the QHash holding the singletons changes the order of destruction of the singletons making the issue sporadic. To account for this in the accompanying test, both singletons hold a reference to the other. Pick-to: 6.5 Fixes: QTBUG-111918 Change-Id: I30450fa08f89f7686c4a41fa46dde2174ce83606 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Controls: Improve various delegatesUlf Hermann2023-03-2717-31/+128
| | | | | | | | | Their internal components should be bound, they should use required properties, and they should prefer IDs over the "parent" property. Change-Id: Iac61a4d7b9daf34928a1b41a29658e491e3ac39f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Controls: Remove the model/modelData workaroundsUlf Hermann2023-03-2717-39/+17
| | | | | | | | Now that model has modelData as anonymous property and also has useful properties for list models, we can remove the workarounds. Change-Id: I744247821fba3c14e5bfff125daeeb7a3128f3b5 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Improve QML string value type documentationAndreas Eliasson2023-03-253-46/+44
| | | | | | | | | | | | | | | | | | QML only has a string value type, no String object type. * Remove the QML String (Object) type page as it may cause confusion. * Clarify that the QML string value type extends the JavaScript String (primitive) type. * Link to the JavaScript Host Environment page for information about which version of ECMAScript QML supports. * Provide some examples of features and methods that QML string supports. * Make minor grammatical adjustments. Fixes: QTBUG-111809 Pick-to: 6.5 Change-Id: Iadbd0586579c6190122cccbd1097a2bc51c0d9e4 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Models: Straighten out model and modelData propertiesUlf Hermann2023-03-247-47/+214
| | | | | | | | | | | | | | | | | | | | | | | | | If there is more than one role, just return the whole model item as modelData. This makes sure we can always require modelData. That's a basic precondition for writing delegates that work with any model. The test shows that model and modelData behave quite erratically in the different cases, but much of this cannot be changed anymore. At least they are now both available in all cases. Furthermore, provide modelData as anonymous property of model. This way, if you have a model that can be singular, and a role that will be an empty string if the model is singular, you can just write: SomeDelegate { required property var model someData: model[role] } Task-number: QTBUG-111176 Task-number: QTBUG-110980 Task-number: QTBUG-104752 Change-Id: Ie200be467df2098d817b85b03d2409267722b596 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add how-to for active focus debuggingMitch Curtis2023-03-241-0/+14
| | | | | | | | | | | This is a popular question online: https://stackoverflow.com/q/47960622 Task-number: QTBUG-109634 Pick-to: 6.5 Change-Id: I640654a96f0cdd5d7571562b9140dc20f86e73b5 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Add a how-to page for Qt Quick topicsMitch Curtis2023-03-244-1/+49
| | | | | | | | | | | | | | | | | | | | | The goal for this page is to have an easily discoverable, useful reference that shows the simplest and best way of performing specific tasks using Qt Quick. Each task will have its own section title (so they can be linked to) in the form of a question. For example: How do I make a QML Button call C++ code when clicked? Each section will provide QML and/or C++ code snippets, or link to other parts of Qt's documentation where those snippets already exist. The QML-only snippets will be tested by tests/auto/quick/doc/how-tos/qml, and the mixed QML and C++ snippets will be tested by individual auto tests under tests/auto/quick/doc/how-tos. Fixes: QTBUG-109634 Pick-to: 6.5 Change-Id: I512e016db2c914fd9e0241d5e0738af82a98d08b Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* QSGDefaultPainterNode: Skip fillRect for invalid fill colorMorten Sørvig2023-03-232-1/+6
| | | | | | | | | | | | | | | | | | | | | The initial background can be skipped safely in cases where the painted item user code paint to all image pixels during the paint() callback. This makes for a performance improvement since we are then no longer filling all image pixels twice. Enable this behavior by interpreting an invalid fill color as "disable background fill". [ChangeLog][QtQuick][QQuickPaintedItem] Background filling can now be disabled by setting the fill color to an invalid color. This may improve performance, and is safe to do if the paint() function draws to all pixels on each frame. Change-Id: Ie403a92ec698df57954672fffb856cb200736886 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
* QJSEngine: Fix some conversionsUlf Hermann2023-03-231-2/+11
| | | | | | | | | | | | | | | | The optimization for object-to-string conversion would never trigger because we were checking the wrong metatype for the PointerToQObject flag. Furthermore, we can provide a very simple optimization for the case when we just want a QObject*. Finally, if we have both types, we can use is_base_of_v to optimize cases where we are converting to a base class. Pick-to: 6.5 Task-number: QTBUG-111986 Change-Id: I731fe0398730a2a83222d8c2fdff8aa3d21f7aec Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Do not crash if resizing a layout that got its child destroyedJan Arve Sæther2023-03-231-0/+4
| | | | | | | | | | | Normally updatePolish() would call ensureLayoutItemsUpdated(), but in some cases the layout might be resized before the updatePolish() is processed. We therefore have to also call ensureLayoutItemsUpdated() from rearrange() Fixes: QTBUG-111792 Change-Id: Iab24dafc26dfa86975348c92244034f7ff825e5f Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
* Fix destroying glyph cache textures with hidden text itemsLaszlo Agocs2023-03-235-40/+24
| | | | | | | | | | | | | | | | | | Move the management of the to-be-released textures up to the rendercontext, so that the glyph cache objects do not need to care about this. Issuing a delete(Later) on the QRhiTexture in the glyph cache is too early if there is no visible text item in the scene that's going to commit the resource updates collected on the rendercontext's QRhiResourceUpdateBatch. Instead, it is logical to move also the list of pending-release textures to the rendercontext, since it already has the update batch object. Pick-to: 6.5 6.4 6.2 Fixes: QTBUG-111995 Change-Id: Ic4309166f265950a7061ae510567ce677c4943df Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* Material: fix Drawer issuesMitch Curtis2023-03-231-6/+6
| | | | | | | | | | | | - Fix rounded edges only being shown correctly for Qt.LeftEdge (the default value). - Add vertical padding to ensure that the contents of the drawer isn't rendered within the curved edges. Fixes: QTBUG-112159 Pick-to: 6.5 Change-Id: I0ebc44848c913dbd3e745d13b82519aae187acc6 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* QmlCompiler: Simplify isRescricted checks down to only enumsOlivier De Cannière2023-03-224-53/+28
| | | | | | | | | | | | | Most checks in isRestricted were redundant. Only those related to enums seem to be useful. These are kept in the new checkForEnumProblems while isRestricted is removed. The error checking in checkForEnumProblems should also provide better error messages for enum problems. Pick-to: 6.5 Change-Id: Ic3f3589464ebe519bee8b4c580b2e80d310c937f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QQuickTableView: fix minor documentation issuesRichard Moe Gustavsen2023-03-222-30/+13
| | | | | | | | | Several documentation errors have sneaked in here and there. This patch will fix those issues. Pick-to: 6.5 Change-Id: I57beb9a39a06a8302e1e83f91078a8f3c1c50670 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* QQuickTableView: only clear selections when selections are enabledRichard Moe Gustavsen2023-03-221-2/+4
| | | | | | | | | | | | | TableView should only modify a selection (which includes clearing it) when selections are enabled. Otherwise it should leave it to the application to modify the selection model explicitly. This can be used to set a selection that "sticks", regardless of what the user does. Pick-to: 6.5 Change-Id: I264946d1b3513846794e1fe12b7d94cfaef050ed Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Remove broken link to Network Access Manager Factory exampleAndreas Eliasson2023-03-211-1/+0
| | | | | | | | | The example has been moved to manual tests, which broke the link. Now, that it's in manual tests, I'm guessing we can stop promoting it. Pick-to: 6.5 Change-Id: I5b7c6838b632538f9c7a942cf28c138699ef51bc Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Doc: Update documentation on model/view/delegatesUlf Hermann2023-03-216-54/+88
| | | | | | | | | | | You should generally use required properties for all of this. Furthermore, correct some grammar problems, and synchronize the documentation to the examples it references. Remove the non-working ListElement in a C++-defined model. Pick-to: 6.5 Change-Id: I1be9b9997a86dc1028a71bdd5a94d6919c0f8a81 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Expose Vulkan queue indices from QSGRendererInterfaceLaszlo Agocs2023-03-213-1/+18
| | | | | | | | | | ...in the absence of other options since some users will not want to resort to private APIs (QRhi). Just reference the values in the QRhiVulkanNativeHandles. Fixes: QTBUG-108895 Change-Id: I619f0d7c8088421416178dd750e0b5fe2e360969 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
* doc, HeaderView: add a code snippet to the documentationRichard Moe Gustavsen2023-03-213-17/+134
| | | | | | | | | Add a doc snippet to the HeaderView documentation that shows how can use it together with a TableView. Pick-to: 6.5 Change-Id: Id1043d2b6561f6e68e0ac120b7ba040760263314 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
* Doc: Fix typoAndreas Eliasson2023-03-211-1/+1
| | | | | | | Change-Id: Id17c37a7f7fc95afd89d0e674e7d7979d345b5f0 Pick-to: 6.5 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Remove cmake porting artifactsFabian Kosmale2023-03-211-29/+0
| | | | | | | | | | The condition could never have been met anymore (given that we depend undconditionally on C++ > 17), and we apparently don't miss whatever the porting script could not parse. Change-Id: Ia6fcc09aa212f8a4fcc0e226e98e45bf4c9b8ccc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Doc: Fix QJSPrimitiveValue::to() \fn signatureTopi Reinio2023-03-201-2/+3
| | | | | | | | And add \since information. Change-Id: I3634a3b2dbc48e63fac4810cfc0c1a5137e925db Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Doc: Fix documentation warningsTopi Reinio2023-03-201-14/+0
| | | | | | | | | | * 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>
* Introduce a new feature: quick-pixmap-cache-threaded-downloadMikolaj Boc2023-03-202-24/+54
| | | | | | | | | | | | | | | | The new feature replaces USE_THREADED_DOWNLOAD in qquickpixmapcache. Some code has been removed when it is not used: - eventLoopQuitHack - not needed as event loop is not used with the feature off - mutex - thread synchronization measures are not needed if threads are not used Also, perform last job housekeeping in ~QQuickPixmapCache sync with threaded downloads disabled. Change-Id: Ic67385c94bbe403ed0544e78f30e7c237b4f4a95 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Revert value label for the Qt Quick Controls Material sliderOliver Eftevaag2023-03-201-44/+0
| | | | | | | | | | | | | | | | The SliderHandle was changed in 0ac8eb67eaa2fca2881caaf439dcac68716f4634 to display the current value of the slider, while the SliderHandle was being pressed. This feature should be optional, and we currently don't have a nice API for hiding it. Let's look for a way to introduce this feature in Qt 6.6 instead. Task-number: QTBUG-111355 Pick-to: 6.5 6.5.0 Change-Id: I3c3f240839d1b69c0fea32d59c8abc8e64e1a184 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: add \since to Text's renderTypeQuality propertyMitch Curtis2023-03-201-0/+1
| | | | | | | | Amends cbbbfe3bff29d8db84771e07ac6f16209b0969d1. Pick-to: 6.5 6.2 Change-Id: If1247a4f2d347f5c8b4993e24b04736db45df80d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>