GUI: country flags preperation
@@ -723,6 +723,14 @@ void gameLobbyDialogImpl::updatePlayer(unsigned playerId, QString newPlayerName)
|
||||
{
|
||||
oldNick = (*it1)->data(0, Qt::DisplayRole).toString();
|
||||
(*it1)->setData(0, Qt::DisplayRole, newPlayerName);
|
||||
PlayerInfo playerInfo(mySession->getClientPlayerInfo(playerId));
|
||||
if(!playerInfo.isGuest) {
|
||||
(*it1)->setIcon(0, QIcon(QString(":/cflags/cflags/%1.png").arg("de")));
|
||||
}
|
||||
else {
|
||||
(*it1)->setIcon(0, QIcon());
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
++it1;
|
||||
@@ -764,10 +772,12 @@ void gameLobbyDialogImpl::playerLeftLobby(unsigned playerId)
|
||||
refreshPlayerStats();
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::playerJoinedLobby(unsigned playerId, QString playerName)
|
||||
void gameLobbyDialogImpl::playerJoinedLobby(unsigned playerId, QString /*playerName TODO remove*/)
|
||||
{
|
||||
PlayerInfo playerInfo(mySession->getClientPlayerInfo(playerId));
|
||||
|
||||
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget_NickList, 0);
|
||||
item->setData(0, Qt::DisplayRole, playerName);
|
||||
item->setData(0, Qt::DisplayRole, QString::fromUtf8(playerInfo.playerName.c_str()));
|
||||
item->setData(0, Qt::UserRole, playerId);
|
||||
|
||||
treeWidget_NickList->sortItems(0, Qt::AscendingOrder);
|
||||
|
||||
|
After Width: | Height: | Size: 643 B |
|
After Width: | Height: | Size: 408 B |
|
After Width: | Height: | Size: 604 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 643 B |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 497 B |
|
After Width: | Height: | Size: 488 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 506 B |
|
After Width: | Height: | Size: 647 B |
|
After Width: | Height: | Size: 403 B |
|
After Width: | Height: | Size: 673 B |
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 663 B |
|
After Width: | Height: | Size: 589 B |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 585 B |
|
After Width: | Height: | Size: 504 B |
|
After Width: | Height: | Size: 449 B |
|
After Width: | Height: | Size: 497 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 457 B |
|
After Width: | Height: | Size: 675 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 611 B |
|
After Width: | Height: | Size: 639 B |
|
After Width: | Height: | Size: 500 B |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 526 B |
|
After Width: | Height: | Size: 631 B |
|
After Width: | Height: | Size: 512 B |
|
After Width: | Height: | Size: 443 B |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 600 B |
|
After Width: | Height: | Size: 628 B |
|
After Width: | Height: | Size: 398 B |
|
After Width: | Height: | Size: 625 B |
|
After Width: | Height: | Size: 528 B |
|
After Width: | Height: | Size: 614 B |
|
After Width: | Height: | Size: 521 B |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 453 B |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 450 B |
|
After Width: | Height: | Size: 525 B |
|
After Width: | Height: | Size: 472 B |
|
After Width: | Height: | Size: 483 B |
|
After Width: | Height: | Size: 477 B |
|
After Width: | Height: | Size: 439 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 529 B |
|
After Width: | Height: | Size: 608 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 476 B |
|
After Width: | Height: | Size: 545 B |
|
After Width: | Height: | Size: 572 B |
|
After Width: | Height: | Size: 495 B |
|
After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 508 B |
|
After Width: | Height: | Size: 582 B |
|
After Width: | Height: | Size: 500 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 465 B |
|
After Width: | Height: | Size: 508 B |
|
After Width: | Height: | Size: 496 B |
|
After Width: | Height: | Size: 653 B |
|
After Width: | Height: | Size: 469 B |
|
After Width: | Height: | Size: 592 B |
|
After Width: | Height: | Size: 479 B |
|
After Width: | Height: | Size: 532 B |
|
After Width: | Height: | Size: 489 B |
|
After Width: | Height: | Size: 610 B |
|
After Width: | Height: | Size: 648 B |
|
After Width: | Height: | Size: 552 B |
|
After Width: | Height: | Size: 474 B |
|
After Width: | Height: | Size: 545 B |
|
After Width: | Height: | Size: 489 B |
|
After Width: | Height: | Size: 599 B |
|
After Width: | Height: | Size: 637 B |
|
After Width: | Height: | Size: 594 B |
|
After Width: | Height: | Size: 545 B |
|
After Width: | Height: | Size: 490 B |
|
After Width: | Height: | Size: 463 B |
|
After Width: | Height: | Size: 470 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 480 B |
|
After Width: | Height: | Size: 488 B |
|
After Width: | Height: | Size: 537 B |
|
After Width: | Height: | Size: 487 B |
|
After Width: | Height: | Size: 630 B |
|
After Width: | Height: | Size: 493 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 645 B |
|
After Width: | Height: | Size: 527 B |
|
After Width: | Height: | Size: 673 B |
|
After Width: | Height: | Size: 537 B |
|
After Width: | Height: | Size: 524 B |