From c27554068efe63d2093d6a28cc83cb95190003a2 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 9 Jul 2019 09:12:01 +0200 Subject: 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 Reviewed-by: Ulf Hermann --- examples/quick/tutorials/helloworld/Cell.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/quick/tutorials') 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 -- cgit v1.2.3