mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Also enumify QEvent
This commit is contained in:
parent
9b33ba7a9b
commit
27b5c08d47
@ -10,7 +10,7 @@ from qt.core import (
|
|||||||
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
||||||
QEventLoop, QFontMetrics, QFormLayout, QFrame, QImage, QIODevice, QLineEdit,
|
QEventLoop, QFontMetrics, QFormLayout, QFrame, QImage, QIODevice, QLineEdit,
|
||||||
QMenu, QMessageBox, QModelIndex, QPalette, QSinglePointEvent, Qt, QThread,
|
QMenu, QMessageBox, QModelIndex, QPalette, QSinglePointEvent, Qt, QThread,
|
||||||
QToolButton
|
QToolButton, QEvent
|
||||||
)
|
)
|
||||||
|
|
||||||
from calibre_extensions import progress_indicator
|
from calibre_extensions import progress_indicator
|
||||||
@ -60,7 +60,7 @@ QFontMetrics.width = lambda self, text: self.horizontalAdvance(text)
|
|||||||
# Restore enum values to various classes
|
# Restore enum values to various classes
|
||||||
for cls in (
|
for cls in (
|
||||||
Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox,
|
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()):
|
for var in tuple(vars(cls).values()):
|
||||||
m = getattr(var, '__members__', {})
|
m = getattr(var, '__members__', {})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user