summaryrefslogtreecommitdiff
path: root/examples/declarative/proxywidgets/proxywidgets.qml
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-14 11:32:57 +1000
committerBea Lam <bea.lam@nokia.com>2010-05-17 09:42:12 +1000
commit82d0b03c4f81c2832975d548917c03dbaddeee72 (patch)
treecb2d7ae0c7c8c5870f4c9439453c938a9423afad /examples/declarative/proxywidgets/proxywidgets.qml
parent0aca20bf669ef7e7702ee96d0d0676392cfd1b72 (diff)
downloadqt4-tools-82d0b03c4f81c2832975d548917c03dbaddeee72.tar.gz
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/proxywidgets/proxywidgets.qml')
-rw-r--r--examples/declarative/proxywidgets/proxywidgets.qml70
1 files changed, 0 insertions, 70 deletions
diff --git a/examples/declarative/proxywidgets/proxywidgets.qml b/examples/declarative/proxywidgets/proxywidgets.qml
deleted file mode 100644
index 88de37f356..0000000000
--- a/examples/declarative/proxywidgets/proxywidgets.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-import Qt 4.7
-import "ProxyWidgets" 1.0
-
-Rectangle {
- id: window
-
- property int margin: 30
-
- width: 640; height: 480
- color: palette.window
-
- SystemPalette { id: palette }
-
- MyPushButton {
- id: button1
- x: margin; y: margin
- text: "Right"
- transformOriginPoint: Qt.point(width / 2, height / 2)
-
- onClicked: window.state = "right"
- }
-
- MyPushButton {
- id: button2
- x: margin; y: margin + 30
- text: "Bottom"
- transformOriginPoint: Qt.point(width / 2, height / 2)
-
- onClicked: window.state = "bottom"
- }
-
- MyPushButton {
- id: button3
- x: margin; y: margin + 60
- text: "Quit"
- transformOriginPoint: Qt.point(width / 2, height / 2)
-
- onClicked: Qt.quit()
- }
-
- states: [
- State {
- name: "right"
- PropertyChanges { target: button1; x: window.width - width - margin; text: "Left"; onClicked: window.state = "" }
- PropertyChanges { target: button2; x: window.width - width - margin }
- PropertyChanges { target: button3; x: window.width - width - margin }
- PropertyChanges { target: window; color: Qt.darker(palette.window) }
- },
- State {
- name: "bottom"
- PropertyChanges { target: button1; y: window.height - height - margin; rotation: 180 }
- PropertyChanges {
- target: button2
- x: button1.x + button1.width + 10; y: window.height - height - margin
- rotation: 180
- text: "Top"
- onClicked: window.state = ""
- }
- PropertyChanges { target: button3; x: button2.x + button2.width + 10; y: window.height - height - margin; rotation: 180 }
- PropertyChanges { target: window; color: Qt.lighter(palette.window) }
- }
- ]
-
- transitions: Transition {
- ParallelAnimation {
- NumberAnimation { properties: "x,y,rotation"; duration: 600; easing.type: Easing.OutQuad }
- ColorAnimation { target: window; duration: 600 }
- }
- }
-}