Update style of chat message links

This commit is contained in:
Ryan Huffman 2014-04-16 13:22:22 -07:00
parent bfb879d3e6
commit e8b6b7ab4d

View file

@ -300,6 +300,7 @@ void ChatWindow::messageReceived(const QXmppMessage& message) {
messageArea->setStyleSheet(messageArea->styleSheet() + "background-color: #e1e8ea");
}
messageArea->document()->setDefaultStyleSheet("a { text-decoration: none; font-weight: bold; color: #267077;}");
messageArea->setHtml(message.body().replace(regexLinks, "<a href=\"\\1\">\\1</a>"));
bool atBottom = isAtBottom();