实现安全帽阈值下发控制。
This commit is contained in:
@ -17,6 +17,7 @@ Item {
|
||||
property var antiClipAreaPoints: []
|
||||
property bool antiClipAreaEnabled: false
|
||||
property int antiClipSensitivity: 1
|
||||
property alias helmetThreshold: helmetInput.text
|
||||
property alias flip: flipSwitch.checked
|
||||
property alias videoRotation: rotateComboBox.currentIndex
|
||||
|
||||
@ -335,6 +336,7 @@ Item {
|
||||
ComboBox {
|
||||
id: antiClipSensitivityComboBox
|
||||
enabled: root.enabled
|
||||
implicitWidth: 60
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
model: [1,2,3,4,5]
|
||||
currentIndex: root.antiClipSensitivity-1
|
||||
@ -343,12 +345,24 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Label { text: qsTr("安全帽灵敏度: ")
|
||||
Label { text: qsTr("安全帽阈值: ")
|
||||
Layout.alignment: Qt.AlignRight
|
||||
}
|
||||
TextField {
|
||||
id: helmetInput
|
||||
enabled: root.enabled
|
||||
implicitWidth: 60
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
validator: IntValidator {
|
||||
bottom: 0
|
||||
top: 300
|
||||
}
|
||||
onAccepted: {
|
||||
if(App.currentHelmetThreshold !== parseInt(helmetInput.text)){
|
||||
App.currentHelmetThreshold= parseInt(helmetInput.text)
|
||||
window.showSuccess("设置成功",2500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Label {text: qsTr("屏蔽区域: ")}
|
||||
|
@ -48,7 +48,8 @@ ApplicationWindow {
|
||||
id: emptyHint
|
||||
visible: false
|
||||
anchors.centerIn: parent
|
||||
text: qsTr("未搜索到设备")
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
text: qsTr("未搜索到设备\n请尝试关闭Windows防火墙后再重试")
|
||||
}
|
||||
delegate: Rectangle {
|
||||
width: deviceList.width
|
||||
@ -120,6 +121,7 @@ ApplicationWindow {
|
||||
antiClipAreaEnabled: App.currentAntiClipAreaEnabled
|
||||
antiClipSensitivity: App.currentAntiClipSensitivity
|
||||
antiClipAreaPoints: App.currentAntiClipAreaPoints
|
||||
helmetThreshold: App.currentHelmetThreshold
|
||||
flip: App.currentDeviceFlip
|
||||
videoRotation: App.currentDeviceRotation
|
||||
}
|
||||
|
Reference in New Issue
Block a user