2022-09-14 05:01:10 +00:00
|
|
|
import QtQuick
|
2022-03-30 06:14:40 +00:00
|
|
|
|
|
|
|
Item {
|
2022-04-30 07:27:56 +00:00
|
|
|
property alias title: titleItem
|
|
|
|
signal accepted() //Read result
|
|
|
|
signal finished() //Close the box
|
2022-03-30 06:14:40 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
id: root
|
2022-03-30 06:14:40 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
Rectangle {
|
|
|
|
id: background
|
|
|
|
anchors.fill: parent
|
2023-02-15 11:54:35 +00:00
|
|
|
color: "#020302"
|
|
|
|
opacity: 0.8
|
2022-04-30 07:27:56 +00:00
|
|
|
radius: 5
|
|
|
|
border.color: "#A6967A"
|
|
|
|
border.width: 1
|
|
|
|
}
|
2022-03-30 06:14:40 +00:00
|
|
|
|
2022-04-30 07:27:56 +00: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 06:14:40 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
drag.target: parent
|
|
|
|
drag.axis: Drag.XAndYAxis
|
|
|
|
}
|
2022-03-30 06:14:40 +00:00
|
|
|
|
2022-04-30 07:27:56 +00:00
|
|
|
function close()
|
|
|
|
{
|
|
|
|
accepted();
|
|
|
|
finished();
|
|
|
|
}
|
2022-03-30 06:14:40 +00:00
|
|
|
}
|