mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
2acec5f20a
重组qml文件,使用qmldir文件实现模块化
44 lines
757 B
QML
44 lines
757 B
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
|
|
Item {
|
|
property alias title: titleItem
|
|
signal accepted() //Read result
|
|
signal finished() //Close the box
|
|
|
|
id: root
|
|
|
|
Rectangle {
|
|
id: background
|
|
anchors.fill: parent
|
|
color: "#020302"
|
|
opacity: 0.8
|
|
radius: 5
|
|
border.color: "#A6967A"
|
|
border.width: 1
|
|
}
|
|
|
|
Text {
|
|
id: titleItem
|
|
color: "#E4D5A0"
|
|
font.pixelSize: 18
|
|
horizontalAlignment: Text.AlignHCenter
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 4
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
}
|
|
|
|
DragHandler {
|
|
grabPermissions: PointHandler.TakeOverForbidden
|
|
xAxis.enabled: true
|
|
yAxis.enabled: true
|
|
}
|
|
|
|
function close()
|
|
{
|
|
accepted();
|
|
finished();
|
|
}
|
|
}
|