equal
deleted
inserted
replaced
2 import Hedgewars.Engine 1.0 |
2 import Hedgewars.Engine 1.0 |
3 |
3 |
4 Rectangle { |
4 Rectangle { |
5 ListView { |
5 ListView { |
6 id: roomsList |
6 id: roomsList |
7 x: 20 |
7 anchors.top: parent.top |
8 y: 0 |
8 anchors.left: parent.left |
9 width: parent.width |
9 anchors.right: parent.right |
10 height: parent.height - x |
10 anchors.bottom: lobbyChat.top |
11 focus: true |
11 focus: true |
12 clip: true |
12 clip: true |
13 |
13 |
14 model: ListModel { |
14 model: ListModel { |
15 id: roomsListModel |
15 id: roomsListModel |
91 } |
91 } |
92 } |
92 } |
93 |
93 |
94 Chat { |
94 Chat { |
95 id: lobbyChat; |
95 id: lobbyChat; |
96 x: 0; |
96 height: 300 |
97 y: 300; |
97 anchors.top: undefined |
98 width: parent.width; |
98 anchors.left: parent.left |
99 height: parent.height - y; |
99 anchors.right: parent.right |
|
100 anchors.bottom: parent.bottom |
100 |
101 |
101 Connections { |
102 Connections { |
102 target: HWEngine |
103 target: HWEngine |
103 onNetConnected: lobbyChat.clear() |
104 onNetConnected: lobbyChat.clear() |
104 onLobbyChatLine: lobbyChat.addChatLine(nickname, line) |
105 onLobbyChatLine: lobbyChat.addChatLine(nickname, line) |