97 lines
2.7 KiB
QML
97 lines
2.7 KiB
QML
|
|
import QtQuick
|
|||
|
|
import QtQuick.Controls
|
|||
|
|
import "./common"
|
|||
|
|
Rectangle{
|
|||
|
|
radius: 9
|
|||
|
|
height: 152
|
|||
|
|
property real progress1: 0.0
|
|||
|
|
property real progress2: 0.0
|
|||
|
|
property real progress3: 0.0
|
|||
|
|
property real progress4: 0.0
|
|||
|
|
property real progress5: 0.0
|
|||
|
|
property real progress6: 0.0
|
|||
|
|
Rectangle
|
|||
|
|
{
|
|||
|
|
width:parent.width - 200
|
|||
|
|
height: 2
|
|||
|
|
anchors.centerIn: parent
|
|||
|
|
// color:"#BFBFBF"
|
|||
|
|
Row{
|
|||
|
|
anchors.fill:parent
|
|||
|
|
Rectangle{
|
|||
|
|
width: parent.width / 5
|
|||
|
|
height: 2
|
|||
|
|
color: (task2State=="1" || task3State=="1" || task4State=="1" || task5State=="1" || task6State=="1") ? "#007EFF" : "#BFBFBF"
|
|||
|
|
}
|
|||
|
|
Rectangle{
|
|||
|
|
width: parent.width / 5
|
|||
|
|
height: 2
|
|||
|
|
color: (task3State=="1" || task4State=="1" || task5State=="1" || task6State=="1") ? "#007EFF" : "#BFBFBF"
|
|||
|
|
}
|
|||
|
|
Rectangle{
|
|||
|
|
width: parent.width / 5
|
|||
|
|
height: 2
|
|||
|
|
color: (task4State=="1" || task5State=="1" || task6State=="1") ? "#007EFF" : "#BFBFBF"
|
|||
|
|
}
|
|||
|
|
Rectangle{
|
|||
|
|
width: parent.width / 5
|
|||
|
|
height: 2
|
|||
|
|
color: (task5State=="1" || task6State=="1") ? "#007EFF" : "#BFBFBF"
|
|||
|
|
}
|
|||
|
|
Rectangle{
|
|||
|
|
width: parent.width / 5
|
|||
|
|
height: 2
|
|||
|
|
color: task6State=="1" ? "#007EFF" : "#BFBFBF"
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
Row{
|
|||
|
|
anchors.centerIn: parent
|
|||
|
|
spacing: (parent.width - 466)/5
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress1
|
|||
|
|
_state: task1State
|
|||
|
|
_active: task1Active
|
|||
|
|
_index: 0
|
|||
|
|
name: "加速度计静态标定"
|
|||
|
|
}
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress2
|
|||
|
|
_state: task2State
|
|||
|
|
_active: task2Active
|
|||
|
|
_index: 1
|
|||
|
|
name: "加速度计验证"
|
|||
|
|
}
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress3
|
|||
|
|
_state: task3State
|
|||
|
|
_active: task3Active
|
|||
|
|
_index: 2
|
|||
|
|
name: " 磁通门静态标定"
|
|||
|
|
}
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress4
|
|||
|
|
_state: task4State
|
|||
|
|
_active: task4Active
|
|||
|
|
_index: 3
|
|||
|
|
name: " 磁通门验证"
|
|||
|
|
}
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress5
|
|||
|
|
_state: task5State
|
|||
|
|
_active: task5Active
|
|||
|
|
_index: 4
|
|||
|
|
name: "加速度计温漂标定"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
TaskItem{
|
|||
|
|
progress:progress6
|
|||
|
|
_state: task6State
|
|||
|
|
_active: task6Active
|
|||
|
|
_index: 5
|
|||
|
|
name: " 磁通门温漂标定"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|