mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Also popup cover on double click in edit metadata dialog
This commit is contained in:
parent
bdb77a370f
commit
6a42e1bef9
@ -1234,6 +1234,13 @@ class Cover(ImageView): # {{{
|
||||
m.addAction(QIcon.ic('view-image'), _('View image in popup window'), self.view_image)
|
||||
return m
|
||||
|
||||
def mouseDoubleClickEvent(self, event):
|
||||
if event.button() == Qt.MouseButton.LeftButton:
|
||||
event.accept()
|
||||
self.view_image()
|
||||
else:
|
||||
super().mouseDoubleClickEvent(event)
|
||||
|
||||
def view_image(self):
|
||||
from calibre.gui2.image_popup import ImageView
|
||||
d = ImageView(self, self.pixmap(), 'cover.jpg')
|
||||
|
Loading…
x
Reference in New Issue
Block a user