91 lines
2.6 KiB
QML
91 lines
2.6 KiB
QML
|
|
import QtQuick
|
|||
|
|
import QtQuick.Layouts
|
|||
|
|
import QtQuick.Controls
|
|||
|
|
import "./common"
|
|||
|
|
// import "./Style"
|
|||
|
|
Rectangle {
|
|||
|
|
id: self
|
|||
|
|
radius: 9
|
|||
|
|
Item {
|
|||
|
|
|
|||
|
|
|
|||
|
|
id: bar
|
|||
|
|
width: parent.width
|
|||
|
|
anchors.top: parent.top
|
|||
|
|
anchors.left: parent.left
|
|||
|
|
anchors.right: parent.right
|
|||
|
|
anchors.leftMargin: 39
|
|||
|
|
anchors.rightMargin: 14
|
|||
|
|
height: 65
|
|||
|
|
property var currentIndex: 1
|
|||
|
|
Row{
|
|||
|
|
spacing: 46
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("基本信息")
|
|||
|
|
isSelected: bar.currentIndex == 0
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 0
|
|||
|
|
}
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("标定管理")
|
|||
|
|
isSelected: bar.currentIndex == 1
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 1
|
|||
|
|
}
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("静态磁场参数")
|
|||
|
|
isSelected: bar.currentIndex == 2
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 2
|
|||
|
|
}
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("加速度计温漂参数")
|
|||
|
|
isSelected: bar.currentIndex == 3
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 3
|
|||
|
|
}
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("磁通门温漂参数")
|
|||
|
|
isSelected: bar.currentIndex == 4
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 4
|
|||
|
|
}
|
|||
|
|
QxTabButton {
|
|||
|
|
text: qsTr("功能参数")
|
|||
|
|
isSelected: bar.currentIndex == 5
|
|||
|
|
textColor: isSelected ? "#007EFF" : "#262626"
|
|||
|
|
onClicked: bar.currentIndex = 5
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
Rectangle{
|
|||
|
|
id: line
|
|||
|
|
width: parent.width
|
|||
|
|
height: 1
|
|||
|
|
color: "#E6E6E6"
|
|||
|
|
anchors.top: bar.bottom
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
StackLayout {
|
|||
|
|
id: layout
|
|||
|
|
|
|||
|
|
anchors.top: bar.bottom
|
|||
|
|
anchors.topMargin: 34
|
|||
|
|
anchors.left: parent.left
|
|||
|
|
anchors.leftMargin: 39
|
|||
|
|
anchors.right: parent.right
|
|||
|
|
anchors.rightMargin: 37
|
|||
|
|
anchors.bottom: parent.bottom
|
|||
|
|
anchors.bottomMargin: 21
|
|||
|
|
currentIndex: bar.currentIndex
|
|||
|
|
SettingTestInfo {}
|
|||
|
|
SettingCalibrate{}
|
|||
|
|
SettingStaticMF{}
|
|||
|
|
SettingTdAF{}
|
|||
|
|
SettingTdMF{}
|
|||
|
|
SettingSystem{}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|