mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
56 lines
1.4 KiB
QML
56 lines
1.4 KiB
QML
import QtQuick 2.7
|
|
|
|
// rectangle for description texts
|
|
Rectangle {
|
|
property alias text: textBox.text
|
|
property alias cancelVisible: cancelIcon.visible
|
|
property int innerWidth;
|
|
signal clicked
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 70
|
|
width: textBox.width + 30
|
|
height: textBox.height + 8
|
|
border.color: "black"
|
|
border.width: 3
|
|
smooth: true
|
|
//opacity: 0.9
|
|
z: 10000
|
|
color: "#FF707070"
|
|
|
|
Image {
|
|
id: cancelIcon
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: 5
|
|
anchors.right: parent.right
|
|
anchors.rightMargin: 5
|
|
source: "qrc:/MO/gui/multiply_red"
|
|
|
|
SequentialAnimation on opacity {
|
|
loops: Animation.Infinite
|
|
|
|
PauseAnimation { duration: 500 }
|
|
PropertyAnimation { easing.type: Easing.InOutSine; duration: 400; to: 0.0 }
|
|
PropertyAnimation { easing.type: Easing.OutInSine; duration: 400; to: 1.0 }
|
|
}
|
|
}
|
|
|
|
Text {
|
|
id: textBox
|
|
text: qsTr("Exit Tutorial")
|
|
font.pointSize: 12
|
|
font.bold: false
|
|
width: innerWidth
|
|
font.family: "Courier"
|
|
wrapMode: Text.WordWrap
|
|
anchors.centerIn: parent
|
|
}
|
|
|
|
MouseArea {
|
|
id: clickArea
|
|
anchors.fill: parent
|
|
onClicked: parent.clicked()
|
|
}
|
|
}
|