diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-05-14 01:32:57 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-05-16 23:42:12 (GMT) |
commit | 82d0b03c4f81c2832975d548917c03dbaddeee72 (patch) | |
tree | cb2d7ae0c7c8c5870f4c9439453c938a9423afad /examples/declarative/connections/connections-example.qml | |
parent | 0aca20bf669ef7e7702ee96d0d0676392cfd1b72 (diff) | |
download | Qt-82d0b03c4f81c2832975d548917c03dbaddeee72.zip Qt-82d0b03c4f81c2832975d548917c03dbaddeee72.tar.gz Qt-82d0b03c4f81c2832975d548917c03dbaddeee72.tar.bz2 |
Restructure the examples. They are now organized into various
subdirectories to make it easier to locate examples for certain
features (e.g. animation) and to distinguish between different types
of examples (e.g. very basic examples vs complex demo-like examples).
Diffstat (limited to 'examples/declarative/connections/connections-example.qml')
-rw-r--r-- | examples/declarative/connections/connections-example.qml | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/examples/declarative/connections/connections-example.qml b/examples/declarative/connections/connections-example.qml deleted file mode 100644 index e65a280..0000000 --- a/examples/declarative/connections/connections-example.qml +++ /dev/null @@ -1,37 +0,0 @@ -import Qt 4.7 -import "content" - -Rectangle { - id: window - - property int angle: 0 - - width: 640; height: 480 - color: "#646464" - - Image { - id: image - source: "content/bg1.jpg" - anchors.centerIn: parent - rotation: window.angle - - Behavior on rotation { - NumberAnimation { easing.type: Easing.OutCubic; duration: 300 } - } - } - - Button { - id: leftButton - image: "content/rotate-left.png" - anchors { left: parent.left; bottom: parent.bottom; leftMargin: 10; bottomMargin: 10 } - } - - Button { - id: rightButton - image: "content/rotate-right.png" - anchors { right: parent.right; bottom: parent.bottom; rightMargin: 10; bottomMargin: 10 } - } - - Connections { target: leftButton; onClicked: window.angle -= 90 } - Connections { target: rightButton; onClicked: window.angle += 90 } -} |