summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/pingpong/assets/Board.qml
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-03-02 15:09:33 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-03-03 11:15:18 +0100
commit8bf9de22e12bca50c946e64d368ed261cb817322 (patch)
tree1d17f1036359f9707524388edeab209884b0f1a6 /examples/bluetooth/pingpong/assets/Board.qml
parentfe8ee784031c3a42ac2515878b7aa8a129fc140e (diff)
Pingpong example: nicer ball visualization
Increase the ball by a factor of 2. Also remove NumberAnimation which was not working anyway. Correct radius. Change-Id: I4f0e5d50a7eb192a0743533f35e77809be77186a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/bluetooth/pingpong/assets/Board.qml')
-rw-r--r--examples/bluetooth/pingpong/assets/Board.qml12
1 files changed, 3 insertions, 9 deletions
diff --git a/examples/bluetooth/pingpong/assets/Board.qml b/examples/bluetooth/pingpong/assets/Board.qml
index c29f4da2..90b64d51 100644
--- a/examples/bluetooth/pingpong/assets/Board.qml
+++ b/examples/bluetooth/pingpong/assets/Board.qml
@@ -128,18 +128,12 @@ Rectangle {
Rectangle {
id: ball
- width: leftblock.width/2
- height: leftblock.width/2
- radius: width
+ width: leftblock.width
+ height: leftblock.width
+ radius: width/2
color: "#363636"
x: pingPong.ballX
y: pingPong.ballY
-
- SequentialAnimation {
- running: true
- NumberAnimation { target: ball; property: "x"; duration: 50 }
- NumberAnimation { target: ball; property: "y"; duration: 50 }
- }
}
// 1 - server role; left pedal