equal
deleted
inserted
replaced
29 clip: true |
29 clip: true |
30 color: "green" |
30 color: "green" |
31 //! [1] |
31 //! [1] |
32 |
32 |
33 Particles { |
33 Particles { |
34 id: Bubbles |
34 id: bubbles |
35 width: parent.width |
35 width: parent.width |
36 anchors.bottom: parent.bottom |
36 anchors.bottom: parent.bottom |
37 source: "bubble.png" |
37 source: "bubble.png" |
38 count: 0 |
38 count: 0 |
39 velocity: 30 |
39 velocity: 30 |
47 //! [3] |
47 //! [3] |
48 State { |
48 State { |
49 name: "charging" |
49 name: "charging" |
50 when: batteryCharging.value |
50 when: batteryCharging.value |
51 PropertyChanges { |
51 PropertyChanges { |
52 target: Bubbles |
52 target: bubbles |
53 count: batteryCharge.value / 5 |
53 count: batteryCharge.value / 5 |
54 emissionRate: 5 |
54 emissionRate: 5 |
55 } |
55 } |
56 }, |
56 }, |
57 //! [3] |
57 //! [3] |