projects
/
mardrone
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
improved desktop UI
[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
}