From 5280485f2b614c7b0417e37f91b959b689835b42 Mon Sep 17 00:00:00 2001 From: Leonardo Sobral Cunha Date: Mon, 10 May 2010 16:25:01 +1000 Subject: Removed multimedia effects from tvtennis declarative example The multimedia elements are not part of 4.7 anymore. Reviewed-by: Martin Jones --- examples/declarative/tvtennis/click.wav | Bin 3056 -> 0 bytes examples/declarative/tvtennis/paddle.wav | Bin 5320 -> 0 bytes examples/declarative/tvtennis/tvtennis.qml | 8 -------- 3 files changed, 8 deletions(-) delete mode 100644 examples/declarative/tvtennis/click.wav delete mode 100644 examples/declarative/tvtennis/paddle.wav diff --git a/examples/declarative/tvtennis/click.wav b/examples/declarative/tvtennis/click.wav deleted file mode 100644 index 26c46f8..0000000 Binary files a/examples/declarative/tvtennis/click.wav and /dev/null differ diff --git a/examples/declarative/tvtennis/paddle.wav b/examples/declarative/tvtennis/paddle.wav deleted file mode 100644 index 604e0e5..0000000 Binary files a/examples/declarative/tvtennis/paddle.wav and /dev/null differ 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; } } -- cgit v0.12