From 1fbb8472ccb3fe7c1c92e960e37f31b7077f999f Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 1 May 2009 18:26:02 +1000 Subject: Use QML signal syntax --- demos/declarative/phonebrowser/content/MediaButton.qml | 4 +--- demos/declarative/phonebrowser/content/PhoneInfoContainer.qml | 3 +-- demos/declarative/phonebrowser/content/Star.qml | 4 +--- examples/declarative/listview/content/MediaButton.qml | 4 +--- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/demos/declarative/phonebrowser/content/MediaButton.qml b/demos/declarative/phonebrowser/content/MediaButton.qml index 7aec2e4..cad36bd 100644 --- a/demos/declarative/phonebrowser/content/MediaButton.qml +++ b/demos/declarative/phonebrowser/content/MediaButton.qml @@ -1,10 +1,8 @@ Item { property var text + signal clicked id: Container - signals: Signal { - name: "clicked" - } Image { id: Image source: "pics/button.png" diff --git a/demos/declarative/phonebrowser/content/PhoneInfoContainer.qml b/demos/declarative/phonebrowser/content/PhoneInfoContainer.qml index 597c3ee..ea20d4e 100644 --- a/demos/declarative/phonebrowser/content/PhoneInfoContainer.qml +++ b/demos/declarative/phonebrowser/content/PhoneInfoContainer.qml @@ -8,8 +8,7 @@ Flipable { property var phoneSpecifications : "" property var phoneUrl : "" property var rating : 2 - - signals: Signal { name: "closed" } + signal closed axis: Axis { startX: Container.width / 2; endX: Container.width / 2; endY: 1 } diff --git a/demos/declarative/phonebrowser/content/Star.qml b/demos/declarative/phonebrowser/content/Star.qml index d53c529..cdbb28b 100644 --- a/demos/declarative/phonebrowser/content/Star.qml +++ b/demos/declarative/phonebrowser/content/Star.qml @@ -1,14 +1,12 @@ Item { property var rating property var on + signal clicked id: Container width: 24 height: 24 - signals: Signal { - name: "clicked" - } Image { id: Image source: "pics/ghns_star.png" diff --git a/examples/declarative/listview/content/MediaButton.qml b/examples/declarative/listview/content/MediaButton.qml index 7aec2e4..cad36bd 100644 --- a/examples/declarative/listview/content/MediaButton.qml +++ b/examples/declarative/listview/content/MediaButton.qml @@ -1,10 +1,8 @@ Item { property var text + signal clicked id: Container - signals: Signal { - name: "clicked" - } Image { id: Image source: "pics/button.png" -- cgit v0.12