From ae0ccff89343c37efd20a2b52cb75d61d0cc8d66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Aug 2016 20:44:48 +0530 Subject: [PATCH] Another place int he preferences dialog that needed to be fixed for hidpi --- src/calibre/gui2/preferences/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/preferences/main.py b/src/calibre/gui2/preferences/main.py index 56b7cbcba9..f0e8cddc25 100644 --- a/src/calibre/gui2/preferences/main.py +++ b/src/calibre/gui2/preferences/main.py @@ -11,7 +11,7 @@ from collections import OrderedDict from PyQt5.Qt import ( Qt, QIcon, QFont, QWidget, QScrollArea, QStackedWidget, QVBoxLayout, - QLabel, QFrame, QToolBar, QSize, pyqtSignal, QPixmap, QDialogButtonBox, + QLabel, QFrame, QToolBar, QSize, pyqtSignal, QDialogButtonBox, QHBoxLayout, QDialog, QSizePolicy, QPainter, QTextLayout, QPointF, QStatusTipEvent, QApplication) @@ -88,8 +88,7 @@ class TitleBar(QWidget): self.show_msg() def show_plugin(self, plugin=None): - self.pmap = QPixmap(I('lt.png') if plugin is None else plugin.icon).scaled(ICON_SIZE, ICON_SIZE, - Qt.KeepAspectRatio, Qt.SmoothTransformation) + self.pmap = (QIcon(I('lt.png') if plugin is None else plugin.icon)).pixmap(ICON_SIZE, ICON_SIZE) self.icon.setPixmap(self.pmap) self.title.setText('

' + (_('Preferences') if plugin is None else plugin.gui_name))