mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
GenericChatForm: use correct fontmetrics
This commit is contained in:
parent
b5801f1800
commit
51f24115d7
|
@ -228,9 +228,8 @@ void GenericChatForm::addSystemInfoMessage(const QString &message, const QString
|
|||
|
||||
QString GenericChatForm::getElidedName(const QString& name)
|
||||
{
|
||||
QFont font;
|
||||
font.setBold(true);
|
||||
QFontMetrics fm(font);
|
||||
// update this whenever you change the font in innerStyle.css
|
||||
QFontMetrics fm(Style::getFont(Style::BigBold));
|
||||
|
||||
return fm.elidedText(name, Qt::ElideRight, chatWidget->nameColWidth());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user