raised nickname display limit to 13 chars, fixed length when ... is appended
This commit is contained in:
@@ -93,10 +93,10 @@ void MyNameLabel::setText ( const QString &t, bool trans, bool guest, bool compu
|
|||||||
linkString = QString("http://pokerth.net/redirect_user_profile.php?nick="+QUrl::toPercentEncoding(t));
|
linkString = QString("http://pokerth.net/redirect_user_profile.php?nick="+QUrl::toPercentEncoding(t));
|
||||||
}
|
}
|
||||||
|
|
||||||
// truncate nicknames longer than 10 characters
|
// truncate nicknames longer than 13 characters
|
||||||
QString t2 = t;
|
QString t2 = t;
|
||||||
if(t2.size() > 10){
|
if(t2.size() > 13){
|
||||||
int chop = t.size() - 10 - 3;
|
int chop = t.size() - 13 + 3;
|
||||||
t2.chop(chop);
|
t2.chop(chop);
|
||||||
t2.append("...");
|
t2.append("...");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user