mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:13:50 +02:00
OS X: Fix a regression that caused incorrect display of the icon in popup message boxes when using a Retina display. Fixes #1635999 [Warning dialog box image too large and distorted](https://bugs.launchpad.net/calibre/+bug/1635999)
This commit is contained in:
parent
06bf7d258a
commit
4c8843c98f
1 changed files with 6 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ def setup_ui(self):
|
|||
self.gridLayout = l = QGridLayout(self)
|
||||
l.setObjectName("gridLayout")
|
||||
self.icon_label = la = QLabel('')
|
||||
la.setMaximumSize(QSize(68, 68))
|
||||
la.setMaximumSize(QSize(64, 64))
|
||||
la.setScaledContents(True)
|
||||
la.setObjectName("icon_label")
|
||||
l.addWidget(la)
|
||||
|
|
@ -75,7 +75,7 @@ def __init__(self, type_, title, msg,
|
|||
|
||||
self.setWindowTitle(title)
|
||||
self.setWindowIcon(self.icon)
|
||||
self.icon_label.setPixmap(self.icon.pixmap(128, 128))
|
||||
self.icon_label.setPixmap(self.icon.pixmap(64, 64))
|
||||
self.msg.setText(msg)
|
||||
self.det_msg.setPlainText(det_msg)
|
||||
self.det_msg.setVisible(False)
|
||||
|
|
@ -452,9 +452,8 @@ def done(self, r):
|
|||
# }}}
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = QApplication([])
|
||||
from calibre.gui2 import question_dialog
|
||||
print question_dialog(None, 'title', 'msg <a href="http://google.com">goog</a> ',
|
||||
from calibre.gui2 import question_dialog, Application
|
||||
app = Application([])
|
||||
print(question_dialog(None, 'title', 'msg <a href="http://google.com">goog</a> ',
|
||||
det_msg='det '*1000,
|
||||
show_copy_button=True)
|
||||
|
||||
show_copy_button=True))
|
||||
|
|
|
|||
Loading…
Reference in a new issue