mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2110206 [[Enhancement] Add Fit image action to right click menu of the image viewer](https://bugs.launchpad.net/calibre/+bug/2110206)
This commit is contained in:
parent
e370c555ba
commit
acb007a297
@ -224,6 +224,11 @@ class ImageView(QDialog):
|
|||||||
m.addAction(self.zoom_out_action)
|
m.addAction(self.zoom_out_action)
|
||||||
m.addAction(self.copy_action)
|
m.addAction(self.copy_action)
|
||||||
m.addAction(self.rotate_action)
|
m.addAction(self.rotate_action)
|
||||||
|
ac = QAction(self.fit_image.text())
|
||||||
|
ac.setCheckable(True)
|
||||||
|
ac.setChecked(self.fit_image.isChecked())
|
||||||
|
ac.toggled.connect(self.toggle_fit)
|
||||||
|
m.addAction(ac)
|
||||||
m.exec(self.mapToGlobal(pos))
|
m.exec(self.mapToGlobal(pos))
|
||||||
|
|
||||||
def set_to_viewport_size(self):
|
def set_to_viewport_size(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user