mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 10:35:20 -04:00
Also popup cover on double click in edit metadata dialog
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user