blob: b295e47737d00a25cbb2144a4de6aae074423807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
import QtQuick 1.1
// rectangle for description texts
Rectangle {
property alias text: textBox.text
property alias continueVisible: continueIcon.visible
property int innerWidth;
signal clicked
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 100
width: textBox.width + 30
height: textBox.height + 8
border.color: "black"
border.width: 3
smooth: true
opacity: 0.9
color: "#707070"
Image {
id: continueIcon
anchors.bottom: parent.bottom
anchors.bottomMargin: 5
anchors.right: parent.right
anchors.rightMargin: 5
source: "qrc:/MO/gui/next"
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: ""
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(mouse)
}
}
|