summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-26 07:04:38 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-26 07:04:38 (GMT)
commite1f33f2e4689a59de2814ffdea7ea246bbfe0283 (patch)
treee3a0d74f5e54f78b83d0c05d6e1588c5f1d47e37 /examples
parent93b02976b7c9c3a36cac475c1935622ebc2f1fe1 (diff)
downloadQt-e1f33f2e4689a59de2814ffdea7ea246bbfe0283.zip
Qt-e1f33f2e4689a59de2814ffdea7ea246bbfe0283.tar.gz
Qt-e1f33f2e4689a59de2814ffdea7ea246bbfe0283.tar.bz2
Change Connection syntax as per QT-2822.
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/connections/connections.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/connections/connections.qml b/examples/declarative/connections/connections.qml
index c140017..4692343 100644
--- a/examples/declarative/connections/connections.qml
+++ b/examples/declarative/connections/connections.qml
@@ -22,6 +22,6 @@ Rectangle {
anchors { right: parent.right; bottom: parent.bottom; rightMargin: 10; bottomMargin: 10 }
}
- Connection { sender: leftButton; signal: "clicked()"; script: window.angle -= 90 }
- Connection { sender: rightButton; signal: "clicked()"; script: window.angle += 90 }
+ Connections { target: leftButton; onClicked: window.angle -= 90 }
+ Connections { target: rightButton; onClicked: window.angle += 90 }
}