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:
Kovid Goyal 2015-03-05 07:50:28 +05:30
parent b19633eeee
commit 72d47ba937

View File

@ -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