Commit Graph

9 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
Kai Koehne e896196f39 documentation: Do not use versioned QML import
Pick-to: 6.0
Task-number: QTBUG-89033
Change-Id: I253319dc201d3144860ab344514375a60a7ddb11
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-12-02 09:14:29 +01:00
Maximilian Goldstein 90cb1091b3 qmlapp/codingconventions: Treat states and transitions as properties
States and transitions are not special on a language level.
They should be written along with other object properties.

Also updates the example to no longer use the undesirable syntax for Lists.

Change-Id: Ib20eb768bd9f6c96b6850cd714f47cda45ce69b9
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2020-10-22 15:24:13 +02:00
Mitch Curtis d336ca0186 Doc: give property assignments their own line in coding conventions
The point of the convention was that related properties should be part
of the same "block" or "group" of assignments, which can be achieved by
ensuring that they are directly above/below one another. Bunching up
assignments onto one line for a few properties should not be a
recommended practice.

Change-Id: Ie84163b3261e7138d69678e059a91c2c82b43507
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
2018-07-16 09:33:06 +00:00
Antti Kokko 0112781936 Unify license header usage
Updated BSD license.

Change-Id: Icc360a040f76765d920750f4e590da2717b7041f
Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
2016-02-04 09:40:20 +00:00
Antti Kokko ebd19207b9 Update copyright headers
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: Iedecec76f88fcf709d31bf7bfc5fe817302ecae1
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
2015-02-17 10:18:46 +00:00
Kai Koehne 0cd4e38612 Bump QtQuick import to 2.3
It doesn't make sense to advocate the use of QtQuick 2.0 anymore. We
can expect that people target Qt 5.3 in the Qt 5.3 documentation ...

Change-Id: I6ac8dca59a2717fe6d8baec13d968bd74070e90e
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
2014-05-07 08:38:25 +02:00
Jerome Pasion 8c8b826d62 Doc: Adding "QML Application Developer Resources" guide.
-ported from qtdeclarative.git
-fixed snippet and image paths to doc/snippets and doc/images

Because this guide will need to cover more than Qt QML and Qt Quick,
this guide does not need to be in qtdeclarative.

Change-Id: Id6a47420a1e73b5c55b7233571557e3558e82043
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Geir Vattekar <geir.vattekar@digia.com>
2013-04-29 14:32:59 +02:00