diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-07-09 09:12:01 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-07-10 09:24:27 +0000 |
commit | c27554068efe63d2093d6a28cc83cb95190003a2 (patch) | |
tree | 0dbe40277a7c5d3c988630d15ef40c5d2dd96da2 /examples | |
parent | 1c84e6debfc05e60f1f331ba5f1f265ec6590a8b (diff) |
Fix docs to explain the new type syntax for QML methods
[ChangeLog][QtQml] It is now possible to specify types for method
parameters and their return value in QML (basic and object types), using
TypeScript-like syntax with a colon separator. The syntax for QML
declared signals supports the same style.
This change also adapts the remaining snippets and docs to the "fresher"
qml signal parameter syntax.
Change-Id: I601781f01f696276951b04785584adab39fedfd9
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/tutorials/helloworld/Cell.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/tutorials/helloworld/Cell.qml b/examples/quick/tutorials/helloworld/Cell.qml index 33b9bf9935..7462a5ceb1 100644 --- a/examples/quick/tutorials/helloworld/Cell.qml +++ b/examples/quick/tutorials/helloworld/Cell.qml @@ -58,7 +58,7 @@ Item { property alias cellColor: rectangle.color //![4] //![5] - signal clicked(color cellColor) + signal clicked(cellColor: color) //![5] width: 40; height: 25 |