-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettingsWindow.qml
69 lines (58 loc) · 1.19 KB
/
SettingsWindow.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
import QtQuick 2.2
import QtQuick.Controls 1.1
Rectangle {
id: root
property string url: ""
signal settingChanged()
color: "#48525D"
border.color: "#B0B0B0"
function changeState()
{
if (state == "hidden")
{
state = "visible"
}
else
{
state = "hidden"
settingChanged()
}
}
Behavior on x { NumberAnimation { easing.type: Easing.OutQuad } }
states: [
State {
name: "visible"
PropertyChanges {
target: root
x: -1
}
},
State {
name: "hidden"
PropertyChanges {
target: root
x: -width
}
}
]
onSettingChanged: {
urlText.focus = false
}
Column {
anchors.fill: parent
spacing: 10
anchors.margins: 15
Text {
color: "white"
text: qsTr("Service URL:")
}
TextField {
id: urlText
width: parent.width
text: url
onTextChanged: {
url = text
}
}
}
}