Added underline to links in chat

[REVIEW]
Links now have a blue underline to better indicate they are clickable.

Preview: http://imgur.com/gQZEv4I
This commit is contained in:
Matt Lowe 2014-11-29 01:18:52 +01:00
parent db0a77989b
commit 52cadd75f3

View file

@ -77,6 +77,8 @@ void ChatView::appendUrlTag(QTextCursor &cursor, QString url)
anchorFormat.setForeground(Qt::blue);
anchorFormat.setAnchor(true);
anchorFormat.setAnchorHref(url);
anchorFormat.setUnderlineColor(Qt::blue);
anchorFormat.setFontUnderline(true);
cursor.setCharFormat(anchorFormat);
cursor.insertText(url);