forked from mivoligo/Zeegaree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfirmationWindow.qml
83 lines (69 loc) · 1.9 KB
/
ConfirmationWindow.qml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import QtQuick 1.1
Rectangle {
id: main
property alias textofnote: text.text
property alias thing_to_delete: thing_to_delete_name.text
property alias cancel_button: cancel
property alias ok_button: ok
property alias canceltext: cancel.buttontext
property alias oktext: ok.buttontext
property alias okbutton_ma: ok.button_ma
property alias cancelbutton_ma: cancel.button_ma
Behavior on scale {NumberAnimation{}}
color: styl.dialog_back_color
width: 400
height: 250
radius: 4
anchors.centerIn: parent
Text {
id: text
color: styl.text_color_primary
width: parent.width - 24
anchors {
centerIn: parent
verticalCenterOffset: -20
}
text: qsTr("text")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
font { family: "Ubuntu"; pixelSize: 18 }
}
Text {
id: thing_to_delete_name
color: styl.info_text_color
width: parent.width - 24
anchors {
centerIn: parent
verticalCenterOffset: 20
}
text: qsTr("text")
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
font { family: "Ubuntu"; pixelSize: 18 }
}
Button {
id: cancel
anchors {
bottom: parent.bottom
bottomMargin: 12
left: parent.left
leftMargin: 12
}
buttontext: ""
KeyNavigation.tab: ok
KeyNavigation.backtab: ok
}
Button {
id: ok
buttoncolor: styl.button_back_color_notok
anchors {
bottom: parent.bottom
bottomMargin: 12
right: parent.right
rightMargin: 12
}
buttontext: ""
KeyNavigation.tab: cancel
KeyNavigation.backtab: cancel
}
}