From e7a8940f28da4e91f22b832448292c6210a042f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Aug 2016 08:58:19 +0530 Subject: [PATCH] Fix high DPI rendering of yes/no icons in the book list --- src/calibre/gui2/library/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index c47377cfff..cbe3872fd3 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -204,9 +204,9 @@ class BooksModel(QAbstractTableModel): # {{{ self.buffer_size = buffer self.metadata_backup = None icon_height = (parent.fontMetrics() if hasattr(parent, 'fontMetrics') else QApplication.instance().fontMetrics()).lineSpacing() - self.bool_yes_icon = QPixmap(I('ok.png')).scaledToHeight(icon_height, Qt.SmoothTransformation) - self.bool_no_icon = QPixmap(I('list_remove.png')).scaledToHeight(icon_height, Qt.SmoothTransformation) - self.bool_blank_icon = QPixmap(I('blank.png')).scaledToHeight(icon_height, Qt.SmoothTransformation) + self.bool_yes_icon = QIcon(I('ok.png')).pixmap(icon_height) + self.bool_no_icon = QIcon(I('list_remove.png')).pixmap(icon_height) + self.bool_blank_icon = QIcon(I('blank.png')).pixmap(icon_height) # Qt auto-scales marked icon correctly, so we dont need to do it (and # remember that the cover grid view needs a larger version of the icon, # anyway)