mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1854422 [[Enhancement] Center the imaga in View image window](https://bugs.launchpad.net/calibre/+bug/1854422)
This commit is contained in:
parent
789a78ce39
commit
30ed603583
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user