Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
f8bb295e
Commit
f8bb295e
authored
Feb 05, 2015
by
Gavin Bisesi
Browse files
Merge pull request #694 from ZeldaZach/flag_fix
Remove Blank Flag Notation
parents
b369da4a
296e31b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/userinfobox.cpp
View file @
f8bb295e
...
...
@@ -67,8 +67,18 @@ void UserInfoBox::updateInfo(const ServerInfo_User &user)
realNameLabel2
.
setText
(
QString
::
fromStdString
(
user
.
real_name
()));
genderLabel2
.
setPixmap
(
GenderPixmapGenerator
::
generatePixmap
(
15
,
user
.
gender
()));
QString
country
=
QString
::
fromStdString
(
user
.
country
());
countryLabel2
.
setPixmap
(
CountryPixmapGenerator
::
generatePixmap
(
15
,
country
));
countryLabel3
.
setText
(
QString
(
"(%1)"
).
arg
(
country
.
toUpper
()));
if
(
country
.
length
()
!=
0
)
{
countryLabel2
.
setPixmap
(
CountryPixmapGenerator
::
generatePixmap
(
15
,
country
));
countryLabel3
.
setText
(
QString
(
"(%1)"
).
arg
(
country
.
toUpper
()));
}
else
{
countryLabel2
.
setText
(
""
);
countryLabel3
.
setText
(
""
);
}
userLevelLabel2
.
setPixmap
(
UserLevelPixmapGenerator
::
generatePixmap
(
15
,
userLevel
,
false
));
QString
userLevelText
;
if
(
userLevel
.
testFlag
(
ServerInfo_User
::
IsAdmin
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment