changing gui signals-slots for using new internal chat system instead of irc

This commit is contained in:
doitux
2009-08-15 21:07:14 +00:00
parent 4cf42d2113
commit 51d8883e88
8 changed files with 52 additions and 42 deletions
@@ -664,6 +664,7 @@ void gameLobbyDialogImpl::addConnectedPlayer(unsigned playerId, QString playerNa
void gameLobbyDialogImpl::updatePlayer(unsigned playerId, QString newPlayerName) {
//rename player in connected players list
QTreeWidgetItemIterator it(treeWidget_connectedPlayers);
while (*it) {
if ((*it)->data(0, Qt::UserRole) == playerId)
@@ -676,6 +677,9 @@ void gameLobbyDialogImpl::updatePlayer(unsigned playerId, QString newPlayerName)
if (inGame)
refreshConnectedPlayerAvatars();
//also rename player in nick-list
myChat->playerChanged(playerId, newPlayerName);
}
void gameLobbyDialogImpl::removePlayer(unsigned playerId, QString) {