mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix incompatibility with PyQt 5.4.1. Fixes #1427684 ["TypeError: QPixmap(): argument 1 has unexpected type" – incompatibility with Qt 5.4.1?](https://bugs.launchpad.net/calibre/+bug/1427684)
This commit is contained in:
parent
b19633eeee
commit
72d47ba937
@ -295,7 +295,7 @@ class ImageView(QWidget, ImageDropMixin): # {{{
|
||||
def __init__(self, parent=None, show_size_pref_name=None, default_show_size=False):
|
||||
QWidget.__init__(self, parent)
|
||||
self.show_size_pref_name = ('show_size_on_cover_' + show_size_pref_name) if show_size_pref_name else None
|
||||
self._pixmap = QPixmap(self)
|
||||
self._pixmap = QPixmap()
|
||||
self.setMinimumSize(QSize(150, 200))
|
||||
ImageDropMixin.__init__(self)
|
||||
self.draw_border = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user