first import
[mardrone] / mardrone / BarGauge.qml
diff --git a/mardrone/BarGauge.qml b/mardrone/BarGauge.qml
new file mode 100644 (file)
index 0000000..7b7ce66
--- /dev/null
@@ -0,0 +1,16 @@
+import Qt 4.7
+
+Rectangle {
+    color:"#00000000"
+    border.color: "black"
+    width: 20
+    height: 100
+    property int val:0
+    property int max:100
+    Rectangle {
+        color:"green"
+        anchors.bottom: parent.bottom
+        height:parent.height*val/max
+        width: parent.width
+    }
+}