sync repo
[mardrone] / mardrone / gauges / GenericGauge.qml
index 8a8c74e..1e27981 100644 (file)
@@ -6,14 +6,15 @@ Item {
     property real value : 0
     property real startAngle:0
     property real endAngle:300
-    property maxValue:100
-    property url gaugeBackground:"joybox.png"
-    property url gaugeForeground:"joybox.png"
+    property real maxValue:100
+    property url gaugeBackground:""
+    property url gaugeForeground:""
     property url gaugeNeedle:"needle1.png"
     property url bezel:""
 
     Image {
         anchors.fill:parent
+        anchors.margins: 8
         source: gaugeBackground
     }
 
@@ -25,10 +26,14 @@ Item {
         rotation: startAngle+root.value*0.36
         smooth: true
         source: gaugeNeedle
-
+    }
     Image {
         anchors.fill:parent
         source: gaugeForeground
     }
-
+    Image {
+        id:bezelImg
+        anchors.fill:parent
+        source: bezel
+    }
 }