mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 15:13:16 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue