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 /examples/declarative/tutorials | |
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 'examples/declarative/tutorials')
8 files changed, 8 insertions, 8 deletions
diff --git a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml index 55a13a1..472fe60 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/2/RemoveButton.qml @@ -60,7 +60,7 @@ Rect { //! [use signal] MouseRegion { anchors.fill: parent - onClicked: { toggle(); removeButton.confirmed.emit() } + onClicked: { toggle(); removeButton.confirmed() } } //! [use signal] } diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml index 353e440..084d8fd 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/3/FieldText.qml @@ -18,7 +18,7 @@ Rect { function confirm() { fieldText.text = textEdit.text; fieldText.state=''; - fieldText.confirmed.emit(); + fieldText.confirmed(); } function reset() { textEdit.text = fieldText.text; diff --git a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml index a9bf3ee..dc9c9b3 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/3/RemoveButton.qml @@ -58,7 +58,7 @@ Rect { opacity: 0 MouseRegion { anchors.fill: parent - onClicked: { toggle(); removeButton.confirmed.emit() } + onClicked: { toggle(); removeButton.confirmed() } } } Text { diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml index cb2c368..cbb2a1f 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/4/FieldText.qml @@ -20,7 +20,7 @@ Rect { fieldText.text = textEdit.text; fieldText.state=''; contactDetails.mouseGrabbed=false; - fieldText.confirmed.emit(); + fieldText.confirmed(); } function reset() { textEdit.text = fieldText.text; diff --git a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml index 05146b7..57750a0 100644 --- a/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml +++ b/examples/declarative/tutorials/contacts/2_Reuse/4/RemoveButton.qml @@ -63,7 +63,7 @@ Rect { opacity: 0 MouseRegion { anchors.fill: parent - onClicked: { toggle(); removeButton.confirmed.emit() } + onClicked: { toggle(); removeButton.confirmed() } } } Text { diff --git a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml index 09af769..629dce8 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/lib/Button.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/lib/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/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml index 417c08a..133262a 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/lib/FieldText.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/lib/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/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml index a962eb3..005daaa 100644 --- a/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml +++ b/examples/declarative/tutorials/contacts/3_Collections/lib/RemoveButton.qml @@ -61,7 +61,7 @@ Rect { opacity: 0 MouseRegion { anchors.fill: parent - onClicked: { toggle(); removeButton.confirmed.emit() } + onClicked: { toggle(); removeButton.confirmed() } } } Text { |