mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More class enums
This commit is contained in:
parent
0ec88750b6
commit
646cdc4fe5
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
from qt.core import (
|
from qt.core import (
|
||||||
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
||||||
QEventLoop, QFrame, QLineEdit, QMenu, QMessageBox, QModelIndex,
|
QEventLoop, QFrame, QImage, QIODevice, QLineEdit, QMenu, QMessageBox,
|
||||||
QSinglePointEvent, Qt, QThread, QToolButton
|
QModelIndex, QSinglePointEvent, Qt, QThread, QToolButton
|
||||||
)
|
)
|
||||||
|
|
||||||
from calibre_extensions import progress_indicator
|
from calibre_extensions import progress_indicator
|
||||||
@ -54,7 +54,7 @@ QModelIndex.child = lambda self, row, column: self.model().index(row, column, se
|
|||||||
|
|
||||||
|
|
||||||
# Restore enum values to various classes
|
# Restore enum values to various classes
|
||||||
for cls in (Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox, QLineEdit, QAction):
|
for cls in (Qt, QDialog, QToolButton, QAbstractItemView, QDialogButtonBox, QFrame, QComboBox, QLineEdit, QAction, QImage, QIODevice):
|
||||||
for var in tuple(vars(cls).values()):
|
for var in tuple(vars(cls).values()):
|
||||||
m = getattr(var, '__members__', {})
|
m = getattr(var, '__members__', {})
|
||||||
for k, v in m.items():
|
for k, v in m.items():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user