mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:53:27 +02:00
Ensure that text is anti-aliased in the grid view
This commit is contained in:
parent
a33ce97c17
commit
5c7124b999
1 changed files with 1 additions and 0 deletions
|
|
@ -409,6 +409,7 @@ def paint(self, painter, option, index):
|
|||
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…
Reference in a new issue