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