Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / plugins / config / calibration / WizardStepIndicator.qml
blob5ec9e3b288dcd3763a5a9e46b66778beedc55273
1 import QtQuick 2.0
3 Rectangle{
4     property alias text : textLabel.text
5     property bool active
6     property bool done
7     height: 25
8     color : "transparent"
9     Rectangle{
10         id: line
11         x: parent.height / 2 -1
12         y: 0
13         width: 2
14         height: parent.height
15         color: "#ff0000"
16     }
17     Rectangle{
18         x: 3
19         y: 3
20         id: circle
21         width: parent.height - (y * 2)
22         height: width
23         color: parent.active ? "red" : ( parent.done ? "green" : "grey")
24         border.color: "transparent"
25         border.width: 0
26         radius: parent.active ? 0 : width * 0.5
27         rotation: 45
28     }
29     Text{
30         id: textLabel
31         x: parent.height + 4
32         y: 0 //parent.height
33     }