mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Coments editor should not explicitly underline inserted links
This commit is contained in:
parent
18398aafea
commit
113be27352
@ -579,7 +579,6 @@ class EditorWidget(QTextEdit, LineEditECM): # {{{
|
|||||||
fmt = QTextCharFormat()
|
fmt = QTextCharFormat()
|
||||||
fmt.setAnchor(True)
|
fmt.setAnchor(True)
|
||||||
fmt.setAnchorHref(url)
|
fmt.setAnchorHref(url)
|
||||||
fmt.setFontUnderline(True)
|
|
||||||
fmt.setForeground(QBrush(QColor('blue')))
|
fmt.setForeground(QBrush(QColor('blue')))
|
||||||
if name or not c.hasSelection():
|
if name or not c.hasSelection():
|
||||||
c.mergeCharFormat(fmt)
|
c.mergeCharFormat(fmt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user