mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Another place int he preferences dialog that needed to be fixed for hidpi
This commit is contained in:
parent
34684813c5
commit
ae0ccff893
@ -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('<h1>' + (_('Preferences') if plugin is None else plugin.gui_name))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user