Smarter Clipboard Pasting/Parsing (#2706)

This commit is contained in:
Zach H 2017-05-14 14:35:40 -04:00 committed by GitHub
parent 405a719412
commit b53cd33eed
6 changed files with 254 additions and 52 deletions

View file

@ -93,7 +93,7 @@ void ChatView::appendCardTag(QTextCursor &cursor, const QString &cardName)
anchorFormat.setAnchor(true);
anchorFormat.setAnchorHref("card://" + cardName);
anchorFormat.setFontItalic(true);
cursor.setCharFormat(anchorFormat);
cursor.insertText(cardName);
cursor.setCharFormat(oldFormat);