mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure that text is anti-aliased in the grid view
This commit is contained in:
parent
a33ce97c17
commit
5c7124b999
@ -409,6 +409,7 @@ class CoverDelegate(QStyledItemDelegate):
|
||||
if cdata is None or cdata is False:
|
||||
title = db.field_for('title', book_id, default_value='')
|
||||
authors = ' & '.join(db.field_for('authors', book_id, default_value=()))
|
||||
painter.setRenderHint(QPainter.TextAntialiasing, True)
|
||||
painter.drawText(rect, Qt.AlignCenter|Qt.TextWordWrap, '%s\n\n%s' % (title, authors))
|
||||
if cdata is False:
|
||||
self.render_queue.put(book_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user