diff -r b74a7bbe224e -r c58db813240b qmlFrontend/qml/qmlFrontend/GameConfig.qml --- a/qmlFrontend/qml/qmlFrontend/GameConfig.qml Mon Oct 13 23:46:49 2014 +0400 +++ b/qmlFrontend/qml/qmlFrontend/GameConfig.qml Mon Oct 20 22:55:12 2014 +0400 @@ -1,6 +1,7 @@ import QtQuick 2.0 import Hedgewars.Engine 1.0 + Rectangle { HWButton { id: btnPreview @@ -70,4 +71,42 @@ } } } + + ListView { + id: playingTeamsList + x: 440 + y: 16 + width: 100 + height: 192 + highlight: Rectangle { color: "#eaea00"; radius: 4 } + focus: true + clip: true + + model: ListModel { + id: localTeamsModel + } + + delegate: Rectangle { + id: teamDelegate + height: 24 + width: parent.width + radius: 8 + border.width: 2 + border.color: "#eaea00" + + Row { + Text { text: name } + } + } + + Connections { + target: HWEngine + onLocalTeamAdded: localTeamsModel.append({"aiLevel": aiLevel, "name": teamName}) + } + } + + Component.onCompleted: { + HWEngine.getTeamsList() + HWEngine.getPreview() + } }