Commit Graph

3 Commits

Author SHA1 Message Date
Joshua Goins 4994e3dd41 codingconventions: Follow current guidelines for example snippets
Updates the coding convention snippets and example to some of the
current QML guidelines, such as: no parenthesis for single arg signal
handlers and semicolons in multiline blocks. These rules are also
enforced by the qmlformat tool, so it makes sense for the docs to also
reflect this.

Pick-to: 6.5 6.6 6.7
Change-Id: Iae38d1b32b6550e3f880182d064ee30194e21603
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2024-01-08 15:14:44 +00:00
Lucie Gérard 6f57506953 Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.
License files are organized under LICENSES directory.

Pick-to: 6.4
Task-number: QTBUG-67283
Change-Id: Idfd176b7f7b077a5b7c66b7738dc9bcac94ab290
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-06-07 18:23:52 +02:00
Maximilian Goldstein 0c6f907b27 qmlapp/codingconventions: Encourage using named signal parameters
Pick-to: 6.2
Task-number: QTBUG-92970
Change-Id: I11bf37cae634434a8ad950a902518a9001bf02bb
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2021-07-29 09:20:36 +02:00