Uppercase country code for text display, not flag filename generation
This commit is contained in:
parent
1af6486d74
commit
6f50266931
1 changed files with 2 additions and 2 deletions
|
@ -66,9 +66,9 @@ void UserInfoBox::updateInfo(const ServerInfo_User &user)
|
|||
nameLabel.setText(QString::fromStdString(user.name()));
|
||||
realNameLabel2.setText(QString::fromStdString(user.real_name()));
|
||||
genderLabel2.setPixmap(GenderPixmapGenerator::generatePixmap(15, user.gender()));
|
||||
QString country = QString::fromStdString(user.country()).toUpper();
|
||||
QString country = QString::fromStdString(user.country());
|
||||
countryLabel2.setPixmap(CountryPixmapGenerator::generatePixmap(15, country));
|
||||
countryLabel3.setText(QString("(%1)").arg(country));
|
||||
countryLabel3.setText(QString("(%1)").arg(country.toUpper()));
|
||||
userLevelLabel2.setPixmap(UserLevelPixmapGenerator::generatePixmap(15, userLevel));
|
||||
QString userLevelText;
|
||||
if (userLevel.testFlag(ServerInfo_User::IsAdmin))
|
||||
|
|
Loading…
Reference in a new issue