projects
/
mardrone
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d28594bbb8c4ee68932b5cfe13bf14c1442a445c
[mardrone]
/
mardrone
/
BarGauge.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
color:"#00000000"
5
border.color: "black"
6
width: 20
7
height: 100
8
property bool horiz:false
9
property real val:0
10
property real max:100
11
Rectangle {
12
color:"green"
13
anchors.left: parent.left
14
anchors.bottom: parent.bottom
15
height:parent.height*(!horiz?val/max:1)
16
width: parent.width*(horiz?val/max:1)
17
}
18
}