aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/views/objectmodel
Commit message (Collapse)AuthorAgeFilesLines
* Make views example more in line with our guidelinesOliver Eftevaag2023-06-301-16/+46
| | | | | | | | | | | | | | | | | | | | | | | The views example is an old example, which shows off many different features related to ListView, GridView and the QML models. Unfortunately, there are currently a few things that are broken in it. One of those things is the FlickrRssModel, which no longer works, because flickr changed their web API. This patch makes some improvements, but it's unfortunately not fixing everything. The list of fixes are the following: - Fix a good number of qmllint warnings. Unfortunately, there seems to be a good number of false positives that remain unfixed. - Use qsTr() in some places. But I've not adopted it everywhere. - sections.qml now uses Qt Quick Controls CheckBox'es instead of a custom component. - Property bindings are now declared on separate lines. Pick-to: 6.6 Change-Id: Idfb563f4bd658dc70c1b9975549e872e7c25449e Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Examples: Do not use import version numbers anymoreKai Köhne2022-08-311-2/+2
| | | | | | | | Pick-to: 6.4 Change-Id: I1f4d4920bb9d132a846ac2dbcfdb8b660759d540 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>
* Use SPDX license identifiersLucie Gérard2022-06-111-49/+2
| | | | | | | | | | | | 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>
* examples/quick/views: Fix a few warningsMaximilian Goldstein2021-04-301-1/+1
| | | | | Change-Id: Iac5df82ff708e37a0cb985e0b83878e7f9b107e1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* Avoid discouraged patterns in examplesUlf Hermann2020-02-111-4/+6
| | | | | | | | | | | In particular, use required properties where applicable, explicitly import QtQml where we use it, avoid unqualified access into the root scope of a component, use JavaScript functions with explicit parameters as signal handlers. Change-Id: I3eaaba47cc3c7a2a12d488e36f9eec145cedbb0e Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
* Fix outdated BSD license headerKai Koehne2017-10-171-3/+13
| | | | | Change-Id: Icc08925454445fc9497fb3bfd2c26efe90605983 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Fixed license headersJani Heikkinen2015-02-171-3/+3
| | | | | Change-Id: I4d5640ff95e1361ec7e65fb3e87d7726d8185ff5 Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
* Update copyright headersJani Heikkinen2015-02-121-5/+5
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I61120571787870c0ed17066afb31779b1e6e30e9 Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Add QtQml.Models moduleAlan Alpert2013-03-121-0/+118
The moved Model classes can now be exposed in a QtQml import. To keep the QtQml import resticted to more core functionality, they are being exposed in a plugin module. Change-Id: I0a84642a72c7c9bbf9b6ffd2a6c33549f8e61c29 Reviewed-by: Alan Alpert <aalpert@blackberry.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>