equal
deleted
inserted
replaced
66 smooth: true |
66 smooth: true |
67 source: "needle.png" |
67 source: "needle.png" |
68 transform: Rotation { |
68 transform: Rotation { |
69 id: needleRotation |
69 id: needleRotation |
70 origin.x: 5; origin.y: 65 |
70 origin.x: 5; origin.y: 65 |
|
71 //! [needle angle] |
71 angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133) |
72 angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133) |
72 Behavior on angle { |
73 Behavior on angle { |
73 SpringAnimation { |
74 SpringAnimation { |
74 spring: 1.4 |
75 spring: 1.4 |
75 damping: .15 |
76 damping: .15 |
76 } |
77 } |
77 } |
78 } |
|
79 //! [needle angle] |
78 } |
80 } |
79 } |
81 } |
80 //! [needle] |
82 //! [needle] |
81 //! [overlay] |
83 //! [overlay] |
82 Image { x: 21; y: 18; source: "overlay.png" } |
84 Image { x: 21; y: 18; source: "overlay.png" } |