diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-05-10 06:25:01 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-05-10 06:28:08 (GMT) |
commit | 5280485f2b614c7b0417e37f91b959b689835b42 (patch) | |
tree | 6870760b163be401b2e2ee45a4762bc2827343f2 | |
parent | 4b95e3089c35864abca4b63f5bb2ea3c1c838cfe (diff) | |
download | Qt-5280485f2b614c7b0417e37f91b959b689835b42.zip Qt-5280485f2b614c7b0417e37f91b959b689835b42.tar.gz Qt-5280485f2b614c7b0417e37f91b959b689835b42.tar.bz2 |
Removed multimedia effects from tvtennis declarative example
The multimedia elements are not part of 4.7 anymore.
Reviewed-by: Martin Jones
-rw-r--r-- | examples/declarative/tvtennis/click.wav | bin | 3056 -> 0 bytes | |||
-rw-r--r-- | examples/declarative/tvtennis/paddle.wav | bin | 5320 -> 0 bytes | |||
-rw-r--r-- | examples/declarative/tvtennis/tvtennis.qml | 8 |
3 files changed, 0 insertions, 8 deletions
diff --git a/examples/declarative/tvtennis/click.wav b/examples/declarative/tvtennis/click.wav Binary files differdeleted file mode 100644 index 26c46f8..0000000 --- a/examples/declarative/tvtennis/click.wav +++ /dev/null diff --git a/examples/declarative/tvtennis/paddle.wav b/examples/declarative/tvtennis/paddle.wav Binary files differdeleted file mode 100644 index 604e0e5..0000000 --- a/examples/declarative/tvtennis/paddle.wav +++ /dev/null diff --git a/examples/declarative/tvtennis/tvtennis.qml b/examples/declarative/tvtennis/tvtennis.qml index 354a16f..c90d9c5 100644 --- a/examples/declarative/tvtennis/tvtennis.qml +++ b/examples/declarative/tvtennis/tvtennis.qml @@ -1,5 +1,4 @@ import Qt 4.7 -import Qt.multimedia 4.7 Rectangle { id: page @@ -17,17 +16,12 @@ Rectangle { x: 20; width: 20; height: 20; z: 1 color: "Lime" - SoundEffect { id: paddle; source: "paddle.wav" } - SoundEffect { id: wall; source: "click.wav" } - // Move the ball to the right and back to the left repeatedly SequentialAnimation on x { loops: Animation.Infinite NumberAnimation { to: page.width - 40; duration: 2000 } - ScriptAction { script: paddle.play() } PropertyAction { target: ball; property: "direction"; value: "left" } NumberAnimation { to: 20; duration: 2000 } - ScriptAction { script: paddle.play() } PropertyAction { target: ball; property: "direction"; value: "right" } } @@ -37,10 +31,8 @@ Rectangle { // Detect the ball hitting the top or bottom of the view and bounce it onYChanged: { if (y <= 0) { - wall.play(); targetY = page.height - 20; } else if (y >= page.height - 20) { - wall.play(); targetY = 0; } } |