mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
71fe92838b
commit
a743a062e2
@ -67,7 +67,7 @@ class Delegate(QStyledItemDelegate):
|
|||||||
d = QTextDocument()
|
d = QTextDocument()
|
||||||
d.setDocumentMargin(0)
|
d.setDocumentMargin(0)
|
||||||
lines = (index.data(Qt.ItemDataRole.DisplayRole) or ' \n ').splitlines()
|
lines = (index.data(Qt.ItemDataRole.DisplayRole) or ' \n ').splitlines()
|
||||||
d.setHtml(f'<b>{lines[0]}</b><br><small>{lines[1]}')
|
d.setHtml(f'<b>{prepare_string_for_xml(lines[0])}</b><br><small>{prepare_string_for_xml(lines[1])}')
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def sizeHint(self, option, index):
|
def sizeHint(self, option, index):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user