From 89e0ecfb4afe8b6f1d8cbfe64cfd493ad423919e Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Mon, 7 Sep 2009 15:47:08 +0200 Subject: fix tutorial 3 - qmlviewer bails out with "id conflicts with type name" the reason is that MouseRegion is used as id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge-request: 1443 Reviewed-by: Thorbjørn Lindeijer --- examples/declarative/tutorials/helloworld/t3/tutorial3.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml index 81e1f6a..426640d 100644 --- a/examples/declarative/tutorials/helloworld/t3/tutorial3.qml +++ b/examples/declarative/tutorials/helloworld/t3/tutorial3.qml @@ -15,7 +15,7 @@ Rectangle { states: [ State { name: "down" - when: MouseRegion.pressed == true + when: MouseRegionId.pressed == true PropertyChanges { target: HelloText y: 160 @@ -39,7 +39,7 @@ Rectangle { } ] } - MouseRegion { id: MouseRegion; anchors.fill: HelloText } + MouseRegion { id: MouseRegionId; anchors.fill: HelloText } Grid { id: ColorPicker x: 0 -- cgit v0.12