2023-04-09 13:35:35 +08:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-09-14 13:01:10 +08:00
|
|
|
import QtQuick
|
2022-03-30 14:14:40 +08:00
|
|
|
|
|
|
|
Item {
|
2022-04-30 15:27:56 +08:00
|
|
|
property alias title: titleItem
|
|
|
|
signal accepted() //Read result
|
|
|
|
signal finished() //Close the box
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
id: root
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
Rectangle {
|
|
|
|
id: background
|
|
|
|
anchors.fill: parent
|
2023-02-15 19:54:35 +08:00
|
|
|
color: "#020302"
|
|
|
|
opacity: 0.8
|
2022-04-30 15:27:56 +08:00
|
|
|
radius: 5
|
|
|
|
border.color: "#A6967A"
|
|
|
|
border.width: 1
|
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
Text {
|
|
|
|
id: titleItem
|
|
|
|
color: "#E4D5A0"
|
|
|
|
font.pixelSize: 18
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 4
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2023-03-18 15:34:42 +08:00
|
|
|
DragHandler {
|
2023-04-09 11:44:19 +08:00
|
|
|
grabPermissions: PointHandler.TakeOverForbidden
|
2023-03-18 15:34:42 +08:00
|
|
|
xAxis.enabled: true
|
|
|
|
yAxis.enabled: true
|
2022-04-30 15:27:56 +08:00
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
|
2022-04-30 15:27:56 +08:00
|
|
|
function close()
|
|
|
|
{
|
|
|
|
accepted();
|
|
|
|
finished();
|
|
|
|
}
|
2022-03-30 14:14:40 +08:00
|
|
|
}
|