mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 11:46:17 +01:00
Also enumify QEvent
This commit is contained in:
parent
64e17233c8
commit
acfd096d15
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
||||
QEventLoop, QFontMetrics, QFormLayout, QFrame, QImage, QIODevice, QLineEdit,
|
||||
QMenu, QMessageBox, QModelIndex, QPalette, QSinglePointEvent, Qt, QThread,
|
||||
QToolButton
|
||||
QToolButton, QEvent
|
||||
)
|
||||
|
||||
from calibre_extensions import progress_indicator
|
||||
|
|
@ -60,7 +60,7 @@ def set_menu(self, menu):
|
|||
# Restore enum values to various classes
|
||||
for cls in (
|
||||
Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox,
|
||||
QLineEdit, QAction, QImage, QIODevice, QPalette, QFormLayout
|
||||
QLineEdit, QAction, QImage, QIODevice, QPalette, QFormLayout, QEvent
|
||||
):
|
||||
for var in tuple(vars(cls).values()):
|
||||
m = getattr(var, '__members__', {})
|
||||
|
|
|
|||
Loading…
Reference in a new issue