mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
E-book viewer: When right clicking on an image to view it in its own popup window, fix the rotate button not working correctly with the zoom buttons
This commit is contained in:
parent
3c71dfb65f
commit
ebc552e118
@ -85,9 +85,13 @@ class ImageView(QDialog):
|
||||
pm = self.label.pixmap()
|
||||
t = QTransform()
|
||||
t.rotate(90)
|
||||
pm = pm.transformed(t)
|
||||
pm = self.current_img = pm.transformed(t)
|
||||
self.label.setPixmap(pm)
|
||||
self.label.adjustSize()
|
||||
self.factor = 1
|
||||
for sb in (self.scrollarea.horizontalScrollBar(),
|
||||
self.scrollarea.verticalScrollBar()):
|
||||
sb.setValue(0)
|
||||
|
||||
def __call__(self, use_exec=False):
|
||||
geom = self.avail_geom
|
||||
|
Loading…
x
Reference in New Issue
Block a user