--- a/qmlFrontend/qml/qmlFrontend/LobbyPage.qml Sat Nov 21 17:07:06 2015 +0300
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +0,0 @@
-import QtQuick 2.0
-import Hedgewars.Engine 1.0
-
-Rectangle {
- ListView {
- id: roomsList
- x: 20
- y: 0
- width: parent.width
- height: parent.height - x
- focus: true
- clip: true
-
- model: ListModel {
- id: roomsListModel
- }
-
- delegate: Rectangle {
- id: roomDelegate
- height: 24
- width: parent.width
- color: "transparent"
-
- Row {
- spacing: 8;
- Text {
- text: name
- }
- Text {
- text: players + " / " + teams
- }
- Text {
- text: host
- }
- Text {
- text: map
- }
- Text {
- text: script
- }
- Text {
- text: scheme
- }
- Text {
- text: weapons
- }
- }
-
- MouseArea {
- z: 1
- anchors.fill: parent
- onDoubleClicked: HWEngine.joinRoom(name);
- }
- }
-
- Connections {
- target: HWEngine
- onRoomAdded: roomsListModel.append({
- "name" : name
- , "players": players
- , "teams": teams
- , "host": host
- , "map": map
- , "script": script
- , "scheme": scheme
- , "weapons": weapons
- })
- onRoomUpdated: {
- var i = roomsListModel.count - 1;
- while ((i >= 0) && (roomsListModel.get(i).name !== name)) --i
-
- if(i >= 0) {
- roomsListModel.set(i, {
- "name" : newName
- , "players": players
- , "teams": teams
- , "host": host
- , "map": map
- , "script": script
- , "scheme": scheme
- , "weapons": weapons
- })
- }
- }
- onRoomRemoved: {
- var i = roomsListModel.count - 1;
- while ((i >= 0) && (roomsListModel.get(i).name !== name)) --i
-
- if(i >= 0) roomsListModel.remove(i, 1)
- }
- }
- }
-
- Chat {
- id: lobbyChat;
- x: 0;
- y: 300;
- width: parent.width;
- height: parent.height - y;
- }
-}
-
-