sync repository
[mardrone] / mardrone / gauges / HeadingGauge.qml
1
2 import QtQuick 1.0
3
4 Item {
5     id: root
6     property real value : 0
7     property url gaugeForeground:"hdg2.png"
8     property url gaugeNeedle:"hdg1.png"
9     property url bezel:""
10
11
12     Image {
13         id: needle
14         x: (root.width/2)-(width/2); y:(root.width/2)
15         transformOrigin: Item.Center
16         anchors.fill:parent
17         rotation: root.value
18         smooth: true
19         source: gaugeNeedle
20     }
21     Image {
22         anchors.fill:parent
23         source: gaugeForeground
24     }
25     Image {
26         id:bezelImg
27         anchors.fill:parent
28         source: bezel
29     }
30
31 }