mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More stupid PyQt enums
This commit is contained in:
parent
38cc111d46
commit
191d900145
@ -1135,7 +1135,7 @@ class Cover(ImageView): # {{{
|
||||
b.setMenu(m)
|
||||
m.addAction(QIcon(I('config.png')), _('Customize the styles and colors of the generated cover'), self.custom_cover)
|
||||
m.addAction(QIcon(I('edit-undo.png')), _('Undo last Generate cover'), self.undo_generate)
|
||||
b.setPopupMode(b.DelayedPopup)
|
||||
b.setPopupMode(QToolButton.ToolButtonPopupMode.DelayedPopup)
|
||||
self.buttons = [self.select_cover_button, self.remove_cover_button,
|
||||
self.trim_cover_button, self.download_cover_button,
|
||||
self.generate_cover_button]
|
||||
|
@ -255,7 +255,7 @@ class MetadataSingleDialogBase(QDialog):
|
||||
'to choose a different prefix.') + '</p>')
|
||||
b.setIcon(QIcon(I('edit-paste.png')))
|
||||
b.clicked.connect(self.identifiers.paste_identifier)
|
||||
b.setPopupMode(b.DelayedPopup)
|
||||
b.setPopupMode(QToolButton.ToolButtonPopupMode.DelayedPopup)
|
||||
b.setMenu(QMenu(b))
|
||||
self.update_paste_identifiers_menu()
|
||||
|
||||
@ -275,7 +275,7 @@ class MetadataSingleDialogBase(QDialog):
|
||||
b.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)
|
||||
b.setMinimumHeight(b.sizeHint().height())
|
||||
b.setIcon(QIcon())
|
||||
b.setText(_('&Download metadata')), b.setPopupMode(b.DelayedPopup)
|
||||
b.setText(_('&Download metadata')), b.setPopupMode(QToolButton.ToolButtonPopupMode.DelayedPopup)
|
||||
b.setToolTip(_('Download metadata for this book [%s]') % self.download_shortcut.key().toString(QKeySequence.SequenceFormat.NativeText))
|
||||
b.setSizePolicy(QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed))
|
||||
self.fetch_metadata_button.clicked.connect(self.fetch_metadata)
|
||||
|
Loading…
x
Reference in New Issue
Block a user