Commit 52cadd75 authored by Matt Lowe's avatar Matt Lowe
Browse files

Added underline to links in chat

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

Preview: http://imgur.com/gQZEv4I
parent db0a7798
...@@ -77,6 +77,8 @@ void ChatView::appendUrlTag(QTextCursor &cursor, QString url) ...@@ -77,6 +77,8 @@ void ChatView::appendUrlTag(QTextCursor &cursor, QString url)
anchorFormat.setForeground(Qt::blue); anchorFormat.setForeground(Qt::blue);
anchorFormat.setAnchor(true); anchorFormat.setAnchor(true);
anchorFormat.setAnchorHref(url); anchorFormat.setAnchorHref(url);
anchorFormat.setUnderlineColor(Qt::blue);
anchorFormat.setFontUnderline(true);
cursor.setCharFormat(anchorFormat); cursor.setCharFormat(anchorFormat);
cursor.insertText(url); cursor.insertText(url);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment