Fix #1854422 [[Enhancement] Center the imaga in View image window](https://bugs.launchpad.net/calibre/+bug/1854422)

This commit is contained in:
Kovid Goyal 2019-11-29 09:44:53 +05:30
parent 789a78ce39
commit 30ed603583
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -50,6 +50,7 @@ class ImageView(QDialog):
l.setScaledContents(True) l.setScaledContents(True)
self.scrollarea = sa = QScrollArea() self.scrollarea = sa = QScrollArea()
sa.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)
sa.setBackgroundRole(QPalette.Dark) sa.setBackgroundRole(QPalette.Dark)
sa.setWidget(l) sa.setWidget(l)