-
Notifications
You must be signed in to change notification settings - Fork 0
/
qtstudy.qml
58 lines (51 loc) · 1.13 KB
/
qtstudy.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
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
id: qtstudyui
width: units.gu(49)
height: units.gu(45)
Label {
id: title
text: "QT Pastebin"
ItemStyle.class: "title"
anchors {
top: parent.top
left: parent.left
topMargin: units.gu(1)
leftMargin: units.gu(2)
}
}
TextArea {
id: content
width: units.gu(45)
height: units.gu(30)
anchors {
top: title.bottom
topMargin: units.gu(1)
left: parent.left
leftMargin: units.gu(2)
}
}
Row {
spacing: units.gu(1)
anchors {
top: content.bottom
topMargin: units.gu(1)
left: parent.left
leftMargin: units.gu(2)
}
Button {
text: "Paste!"
onClicked: {
qpastebin.postToAPI(content.text);
}
}
Button {
objectName: "buttonClose"
text: "Close"
onClicked: {
qapp.quit();
}
}
}
}