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>
This commit is contained in:
parent
fe8ee78403
commit
8bf9de22e1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue