aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels/doc/snippets/qml/tablemodel
Commit message (Collapse)AuthorAgeFilesLines
* Remove support of manipulation of complex rows in QQmlTableModelMate Barany2025-07-281-87/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TableModel supports complex row structures but only with a limited functionality. Since the model does not know how a complex row is structured, it cannot manipulate it. This also means that the copy of the model data that is stored in rows is not kept in sync with the source data that was set in QML - the user is supposed to handle simple data manipulation. This one functionality was not tested and it seems that the implementation was changed in the background as setRows is now called when rows is modified in QML. A good example is in complex.qml. If we try to extend the corresponding test case with a setData call it is going to call the function assigned to setDisplay which calls setRows - something it was not supposed to do. The checks in setRows do not recognize the complex row structure and as such the call is not successful. The checks could be adjusted to work for this specific case, but the structure could be anything so that solution would not be generic enough. Remove the support of manipulation of complex row structures from QQmlTableModel. [ChangeLog][Qt labs QML Models] Removed the support of manipulation of complex row structures from QQmlTableModel. Task-number: QTBUG-138553 Pick-to: 6.10 Change-Id: I8664ae9ec2e5cd09bc2c88a25f4ac972378e8e94 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Doc: Don't use versioned Qt imports in QML snippetsKai Köhne2023-06-303-9/+9
| | | | | | | | | | | We don't promote versioned imports anymore in Qt 6. Patch done by find . -path "*/snippets/*.qml" -exec perl -pi -e "s/import Qt([\.a-zA-Z]*) \d\.\d+/import Qt\\1/g" {} ; Pick-to: 6.5 6.6 Change-Id: I20a5bf52f7cdd99124626f85ce9794af74382977 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-113-147/+6
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I63563bbeb6f60f89d2c99660400dca7fab78a294 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Re-add documentation for Qt Qml ModelsUlf Hermann2019-09-173-0/+383
It got lost when moving the classes. Change-Id: I7b3a9fec8fe9439c548da570e430d3b82613b816 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>