实现视频旋转及翻转指令控制。
This commit is contained in:
@ -16,6 +16,9 @@ Item {
|
||||
property color antiClipAreaColor: "blue"
|
||||
property var antiClipAreaPoints: []
|
||||
property bool antiClipAreaEnabled: false
|
||||
property alias flip: flipSwitch.checked
|
||||
property alias videoRotation: rotateComboBox.currentIndex
|
||||
|
||||
Item {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
@ -246,6 +249,35 @@ Item {
|
||||
columns: 2
|
||||
spacing: 10
|
||||
verticalItemAlignment: Qt.AlignVCenter
|
||||
|
||||
Label { text: qsTr("图像: ") }
|
||||
|
||||
Row {
|
||||
enabled: root.enabled
|
||||
Label {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: qsTr("旋转")
|
||||
}
|
||||
Item {width: 10; height:10}
|
||||
ComboBox {
|
||||
id: rotateComboBox
|
||||
model: ["0°","90°","180°","270°"]
|
||||
onCurrentIndexChanged: {
|
||||
App.currentDeviceRotation = rotateComboBox.currentIndex
|
||||
}
|
||||
}
|
||||
Item {width: 70; height:10}
|
||||
Label {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: qsTr("翻转")
|
||||
}
|
||||
Item {width: 10; height:10}
|
||||
Switch {
|
||||
id: flipSwitch
|
||||
onToggled: App.currentDeviceFlip=flipSwitch.checked
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
text: qsTr("开门区域: ")
|
||||
}
|
||||
|
@ -119,6 +119,8 @@ ApplicationWindow {
|
||||
shieldedAreaPoints: App.currentShieldedAreaPoints
|
||||
antiClipAreaEnabled: App.currentAntiClipAreaEnabled
|
||||
antiClipAreaPoints: App.currentAntiClipAreaPoints
|
||||
flip: App.currentDeviceFlip
|
||||
videoRotation: App.currentDeviceRotation
|
||||
}
|
||||
|
||||
NetworkSettingPopup {
|
||||
|
Reference in New Issue
Block a user