Also enumify QMessgaeBox

This commit is contained in:
Kovid Goyal 2022-01-01 16:23:48 +05:30
parent f61d216e20
commit 5db495deeb
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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, QEvent
QLineEdit, QAction, QImage, QIODevice, QPalette, QFormLayout, QEvent, QMessageBox
):
for var in tuple(vars(cls).values()):
m = getattr(var, '__members__', {})