From 52cadd75f3c043f4ad47f95050d27b71425ffea5 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Sat, 29 Nov 2014 01:18:52 +0100 Subject: [PATCH] Added underline to links in chat [REVIEW] Links now have a blue underline to better indicate they are clickable. Preview: http://imgur.com/gQZEv4I --- cockatrice/src/chatview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/chatview.cpp b/cockatrice/src/chatview.cpp index ae157647..3166bc1c 100644 --- a/cockatrice/src/chatview.cpp +++ b/cockatrice/src/chatview.cpp @@ -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);