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/contacts | |
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/contacts')
-rw-r--r-- | demos/declarative/contacts/Button.qml | 2 | ||||
-rw-r--r-- | demos/declarative/contacts/FieldText.qml | 2 | ||||
-rw-r--r-- | demos/declarative/contacts/RemoveButton.qml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/declarative/contacts/Button.qml b/demos/declarative/contacts/Button.qml index 09af769..629dce8 100644 --- a/demos/declarative/contacts/Button.qml +++ b/demos/declarative/contacts/Button.qml @@ -18,7 +18,7 @@ Item { MouseRegion { id: buttonMouseRegion anchors.fill: buttonRect - onClicked: { button.clicked.emit() } + onClicked: { button.clicked() } } states: [ State { diff --git a/demos/declarative/contacts/FieldText.qml b/demos/declarative/contacts/FieldText.qml index 561e3c3..c8bf932 100644 --- a/demos/declarative/contacts/FieldText.qml +++ b/demos/declarative/contacts/FieldText.qml @@ -20,7 +20,7 @@ Rect { fieldText.text = textEdit.text; fieldText.state=''; contacts.mouseGrabbed=false; - fieldText.confirmed.emit(); + fieldText.confirmed(); } function reset() { textEdit.text = fieldText.text; diff --git a/demos/declarative/contacts/RemoveButton.qml b/demos/declarative/contacts/RemoveButton.qml index 549c97a..00bce34 100644 --- a/demos/declarative/contacts/RemoveButton.qml +++ b/demos/declarative/contacts/RemoveButton.qml @@ -60,7 +60,7 @@ Rect { opacity: 0 MouseRegion { anchors.fill: parent - onClicked: { toggle(); removeButton.confirmed.emit() } + onClicked: { toggle(); removeButton.confirmed() } } } Text { |