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: "darkGrey"
6
property bool horiz:false
7
property real val:0
8
property real max:100
9
Rectangle {
10
color:"green"
11
anchors.left: parent.left
12
anchors.bottom: parent.bottom
13
height:parent.height*(!horiz?val/max:1)
14
width: parent.width*(horiz?val/max:1)
15
}
16
}