-
Notifications
You must be signed in to change notification settings - Fork 5
/
chat.qml
57 lines (55 loc) · 1.16 KB
/
chat.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
import QtQuick 2.0
Rectangle {
id: window
width: 800; height: 600
color: "lightgray"
//bottom entry line
Rectangle {
id: entryRect
anchors.bottom: parent.bottom
anchors.left: parent.left
width: parent.width
height: 50
border.color: "black"
TextInput {
id: entry
anchors.fill: parent
Keys.onReturnPressed: { ctrl.textEntered(entry); text=""}
Keys.onEnterPressed: { ctrl.textEntered(entry); text=""}
focus: true
wrapMode: "WordWrap"
}
}
//user list
Rectangle {
id: listRect
anchors.top: parent.top
anchors.right: parent.right
width: 200
height: parent.height-entryRect.height
border.color: "black"
Text {
id: userlist
objectName: "userlist"
text: ""
anchors.fill: parent
wrapMode: "WordWrap"
}
}
//conversation area
Rectangle {
id: convRect
anchors.top: parent.top
anchors.left: parent.left
width: parent.width - listRect.width
height: parent.height - entryRect.height
border.color: "black"
Text {
id: conv
objectName: "conv"
text: ""
wrapMode: "WordWrap"
anchors.fill: parent
}
}
}