代码拉取完成,页面将自动刷新
同步操作将从 韦东山/Qtmxapp-desktop 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import QtQuick 2.0
//预览界面删除对话框
Rectangle {
id: root
width: 240
height: width/2
color: "#363d43"
visible: false
border.color: "#e5e8ea"
border.width: 1
radius: 3
property color clr_entered: "darkgray"
property color clr_pressed: "dimgray"
property color clr_released: "black"
property color clr_exited: "black"
signal clicked_delete
signal clicked_cancel
Text {
id: infoText
text: qsTr("是否删除本张图片?")
color: "white"
font.pixelSize: 20
font.bold: true
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
anchors.horizontalCenter: root.horizontalCenter
anchors.top: root.top
anchors.topMargin: 30
}
Rectangle {
id: deleteButton
width: root.width/2
height: root.height/4
color: clr_exited
border.color: "white"
border.width: 0.5
radius: root.radius
Text {
text: qsTr("确定")
color: "white"
font.pixelSize: 20
font.bold: true
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
anchors.centerIn: parent
}
anchors.bottom: root.bottom
anchors.left: root.left
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
hoverEnabled: enabled
onClicked: root.clicked_delete()
onPressed: deleteButton.color = clr_pressed
onEntered: deleteButton.color = clr_entered
onExited: deleteButton.color = clr_exited
onReleased: deleteButton.color = clr_released
}
}
Rectangle {
id: cancelButton
width: root.width/2
height: root.height/4
color: clr_exited
border.color: "white"
border.width: 1
radius: root.radius
Text {
text: qsTr("取消")
font.pixelSize: 20
font.bold: true
color: "white"
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
anchors.centerIn: parent
}
anchors.bottom: root.bottom
anchors.right: root.right
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
hoverEnabled: enabled
onClicked: root.clicked_cancel()
onPressed: cancelButton.color = clr_pressed
onEntered: cancelButton.color = clr_entered
onExited: cancelButton.color = clr_exited
onReleased: cancelButton.color = clr_released
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。