summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tvtennis/tvtennis.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/tvtennis/tvtennis.qml')
-rw-r--r--examples/declarative/tvtennis/tvtennis.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/declarative/tvtennis/tvtennis.qml b/examples/declarative/tvtennis/tvtennis.qml
index 9d107ad..354a16f 100644
--- a/examples/declarative/tvtennis/tvtennis.qml
+++ b/examples/declarative/tvtennis/tvtennis.qml
@@ -8,13 +8,14 @@ Rectangle {
// Make a ball to bounce
Rectangle {
+ id: ball
+
// Add a property for the target y coordinate
property int targetY : page.height - 10
property variant direction : "right"
- id: ball
- color: "Lime"
x: 20; width: 20; height: 20; z: 1
+ color: "Lime"
SoundEffect { id: paddle; source: "paddle.wav" }
SoundEffect { id: wall; source: "click.wav" }