sync repo
[mardrone] / mardrone / gauges / AltGauge.qml
1
2 import QtQuick 1.0
3
4 Item {
5     id: root
6     property real value : 0
7     property url bezel:""
8
9 //    width: 200; height: 200
10
11     Image {
12         anchors.fill:parent
13         source: "alt2.png"
14     }
15
16
17
18     Image {
19         id: needle10
20         x: (root.width/2)-(width/2); y:(root.width/2)
21         transformOrigin: Item.Top
22         scale: root.width / 300
23         rotation: 180+root.value*0.36
24         smooth: true
25         source: "needle1.png"
26
27     }
28     Image {
29         id: needle1
30         x: (root.width/2)-(width/2); y:(root.width/2)
31         transformOrigin: Item.Top
32         scale: root.width / 300
33         rotation: 180+root.value*3.6
34
35         smooth: true
36         source: "needle2.png"
37
38     }
39     Image {
40         id:bezelImg
41         anchors.fill:parent
42         source: bezel
43     }
44 }