1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2015-01-03 19:06:10 +01:00
parent 698fcb70f0
commit 99a230ccf5

View File

@ -52,7 +52,9 @@ ChatMessage *ChatMessage::createChatMessage(QGraphicsScene *scene, const QString
msg->setAsAction(); msg->setAsAction();
} }
else if(alert) else if(alert)
{
text = "<div class=alert>" + text + "</div>"; text = "<div class=alert>" + text + "</div>";
}
msg->addColumn(new Text(isAction ? "*" : sender, isMe ? Style::getFont(Style::BigBold) : Style::getFont(Style::Big), true), ColumnFormat(NAME_COL_WIDTH, ColumnFormat::FixedSize, ColumnFormat::Right)); msg->addColumn(new Text(isAction ? "*" : sender, isMe ? Style::getFont(Style::BigBold) : Style::getFont(Style::Big), true), ColumnFormat(NAME_COL_WIDTH, ColumnFormat::FixedSize, ColumnFormat::Right));
msg->addColumn(new Text(text, Style::getFont(Style::Big)), ColumnFormat(1.0, ColumnFormat::VariableSize)); msg->addColumn(new Text(text, Style::getFont(Style::Big)), ColumnFormat(1.0, ColumnFormat::VariableSize));