diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-01 13:48:41 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-02 00:54:54 (GMT) |
commit | ecd07750a74111ed9ef65a7439ddccc065c5dadc (patch) | |
tree | 96422a2eca0a2ad2900027ee34df251a7a96890b /demos/declarative/flickr | |
parent | 5118020e63f5e634a74082c417362d735a7a2303 (diff) | |
download | Qt-ecd07750a74111ed9ef65a7439ddccc065c5dadc.zip Qt-ecd07750a74111ed9ef65a7439ddccc065c5dadc.tar.gz Qt-ecd07750a74111ed9ef65a7439ddccc065c5dadc.tar.bz2 |
Add parameterized synthesized signals
Also changed syntax for emitting a signal to be consistent with normal QtScript.
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r-- | demos/declarative/flickr/content/ImageDetails.qml | 2 | ||||
-rw-r--r-- | demos/declarative/flickr/content/MediaButton.qml | 2 | ||||
-rw-r--r-- | demos/declarative/flickr/content/Star.qml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/flickr/content/ImageDetails.qml b/demos/declarative/flickr/content/ImageDetails.qml index 0d781f8..6adb397 100644 --- a/demos/declarative/flickr/content/ImageDetails.qml +++ b/demos/declarative/flickr/content/ImageDetails.qml @@ -29,7 +29,7 @@ Flipable { MediaButton { id: BackButton; x: 630; y: 370; text: "Back" - onClicked: { Container.closed.emit() } + onClicked: { Container.closed() } } MediaButton { diff --git a/demos/declarative/flickr/content/MediaButton.qml b/demos/declarative/flickr/content/MediaButton.qml index 6392a13..49922f0 100644 --- a/demos/declarative/flickr/content/MediaButton.qml +++ b/demos/declarative/flickr/content/MediaButton.qml @@ -17,7 +17,7 @@ Item { MouseRegion { id: MouseRegion anchors.fill: Image - onClicked: { Container.clicked.emit(); } + onClicked: { Container.clicked(); } } Text { font.bold: true diff --git a/demos/declarative/flickr/content/Star.qml b/demos/declarative/flickr/content/Star.qml index 437450d..2c2807a 100644 --- a/demos/declarative/flickr/content/Star.qml +++ b/demos/declarative/flickr/content/Star.qml @@ -18,7 +18,7 @@ Item { } MouseRegion { anchors.fill: Container - onClicked: { Container.clicked.emit() } + onClicked: { Container.clicked() } } states: [ State { |