mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Smarter Clipboard Pasting/Parsing (#2706)
This commit is contained in:
parent
405a719412
commit
b53cd33eed
6 changed files with 254 additions and 52 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue