GUI: country flags preperation

This commit is contained in:
doitux
2010-03-26 20:09:51 +00:00
parent e6dfce38c4
commit 099319f857
249 changed files with 261 additions and 2 deletions
@@ -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);
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 647 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 457 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 526 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 512 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 443 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 472 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 477 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 563 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 495 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 500 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 552 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 645 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Some files were not shown because too many files have changed in this diff Show More