diff options
Diffstat (limited to 'examples/declarative/connections')
-rw-r--r-- | examples/declarative/connections/connections-example.qml | 38 | ||||
-rw-r--r-- | examples/declarative/connections/connections.qmlproject | 16 | ||||
-rw-r--r-- | examples/declarative/connections/content/Button.qml | 12 | ||||
-rw-r--r-- | examples/declarative/connections/content/bg1.jpg | bin | 23771 -> 0 bytes | |||
-rw-r--r-- | examples/declarative/connections/content/rotate-left.png | bin | 3061 -> 0 bytes | |||
-rw-r--r-- | examples/declarative/connections/content/rotate-right.png | bin | 3115 -> 0 bytes |
6 files changed, 0 insertions, 66 deletions
diff --git a/examples/declarative/connections/connections-example.qml b/examples/declarative/connections/connections-example.qml deleted file mode 100644 index fbef968..0000000 --- a/examples/declarative/connections/connections-example.qml +++ /dev/null @@ -1,38 +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 - transformOrigin: Item.Center - rotation: window.angle - - Behavior on rotation { - NumberAnimation { easing.type: "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 } -} diff --git a/examples/declarative/connections/connections.qmlproject b/examples/declarative/connections/connections.qmlproject deleted file mode 100644 index d4909f8..0000000 --- a/examples/declarative/connections/connections.qmlproject +++ /dev/null @@ -1,16 +0,0 @@ -import QmlProject 1.0 - -Project { - /* Include .qml, .js, and image files from current directory and subdirectories */ - QmlFiles { - directory: "." - } - JavaScriptFiles { - directory: "." - } - ImageFiles { - directory: "." - } - /* List of plugin directories passed to QML runtime */ - // importPaths: [ " ../exampleplugin " ] -} diff --git a/examples/declarative/connections/content/Button.qml b/examples/declarative/connections/content/Button.qml deleted file mode 100644 index f95afbb..0000000 --- a/examples/declarative/connections/content/Button.qml +++ /dev/null @@ -1,12 +0,0 @@ -import Qt 4.7 - -Item { - id: button - width: 48; height: 48 - - property alias image: icon.source - signal clicked - - Image { id: icon } - MouseArea { anchors.fill: icon; onClicked: button.clicked() } -} diff --git a/examples/declarative/connections/content/bg1.jpg b/examples/declarative/connections/content/bg1.jpg Binary files differdeleted file mode 100644 index dfc7cee..0000000 --- a/examples/declarative/connections/content/bg1.jpg +++ /dev/null diff --git a/examples/declarative/connections/content/rotate-left.png b/examples/declarative/connections/content/rotate-left.png Binary files differdeleted file mode 100644 index c30387e..0000000 --- a/examples/declarative/connections/content/rotate-left.png +++ /dev/null diff --git a/examples/declarative/connections/content/rotate-right.png b/examples/declarative/connections/content/rotate-right.png Binary files differdeleted file mode 100644 index 1b05674..0000000 --- a/examples/declarative/connections/content/rotate-right.png +++ /dev/null |