mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 09:44:39 +02:00
more context menu icons
This commit is contained in:
parent
344baecb90
commit
f5771797c1
1 changed files with 2 additions and 2 deletions
|
|
@ -275,8 +275,8 @@ def set_pixmap(self, pmap):
|
|||
|
||||
def build_context_menu(self):
|
||||
cm = QMenu(self)
|
||||
paste = cm.addAction(_('Paste cover'))
|
||||
copy = cm.addAction(_('Copy cover'))
|
||||
paste = cm.addAction(QIcon.ic('edit-paste.png'), _('Paste cover'))
|
||||
copy = cm.addAction(QIcon.ic('edit-copy.png'), _('Copy cover'))
|
||||
if not QApplication.instance().clipboard().mimeData().hasImage():
|
||||
paste.setEnabled(False)
|
||||
copy.triggered.connect(self.copy_to_clipboard)
|
||||
|
|
|
|||
Loading…
Reference in a new issue