diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-17 03:54:49 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-17 03:54:49 (GMT) |
commit | 772944bf3888fd43ce484fc39faf9f01b4c9ae65 (patch) | |
tree | 849a1eaf87329adf10b6fdaa73ccad9ccc394f52 /examples | |
parent | 94061234eb560c3a8e94abba7589c2df65d98fa8 (diff) | |
download | Qt-772944bf3888fd43ce484fc39faf9f01b4c9ae65.zip Qt-772944bf3888fd43ce484fc39faf9f01b4c9ae65.tar.gz Qt-772944bf3888fd43ce484fc39faf9f01b4c9ae65.tar.bz2 |
Make pong example scale.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/follow/pong.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/follow/pong.qml b/examples/declarative/follow/pong.qml index 5a2d0ad..2a430bf 100644 --- a/examples/declarative/follow/pong.qml +++ b/examples/declarative/follow/pong.qml @@ -58,12 +58,12 @@ Rect { } // The rest, to make it look realistic, if neither ever scores... - Rect { color: "#00ee00"; x: 320-80; y: 0; width: 40; height: 60 } - Rect { color: "#000000"; x: 320-70; y: 10; width: 20; height: 40 } - Rect { color: "#00ee00"; x: 320+40; y: 0; width: 40; height: 60 } - Rect { color: "#000000"; x: 320+50; y: 10; width: 20; height: 40 } + Rect { color: "#00ee00"; x: Page.width/2-80; y: 0; width: 40; height: 60 } + Rect { color: "#000000"; x: Page.width/2-70; y: 10; width: 20; height: 40 } + Rect { color: "#00ee00"; x: Page.width/2+40; y: 0; width: 40; height: 60 } + Rect { color: "#000000"; x: Page.width/2+50; y: 10; width: 20; height: 40 } Repeater { - dataSource: 24 - Rect { color: "#00ee00"; x: 320-5; y: index*20; width: 10; height: 10 } + dataSource: Page.height/20 + Rect { color: "#00ee00"; x: Page.width/2-5; y: index*20; width: 10; height: 10 } } } |