Restore QCoreApplication.exec_

This commit is contained in:
Kovid Goyal 2022-01-08 21:57:46 +05:30
parent a48fae501f
commit aee016b897
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -7,10 +7,11 @@
# party plugin code, we NEED backward compat. # party plugin code, we NEED backward compat.
from qt.core import ( from qt.core import (
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag, QAbstractItemView, QAction, QComboBox, QCoreApplication, QDialog,
QDropEvent, QEvent, QEventLoop, QFontMetrics, QFormLayout, QFrame, QHoverEvent, QDialogButtonBox, QDrag, QDropEvent, QEvent, QEventLoop, QFontMetrics,
QImage, QIODevice, QLayout, QLineEdit, QMenu, QMessageBox, QModelIndex, QPalette, QFormLayout, QFrame, QHoverEvent, QImage, QIODevice, QLayout, QLineEdit, QMenu,
QSinglePointEvent, QSizePolicy, Qt, QThread, QToolButton QMessageBox, QModelIndex, QPalette, QSinglePointEvent, QSizePolicy, Qt, QThread,
QToolButton
) )
from calibre_extensions import progress_indicator from calibre_extensions import progress_indicator
@ -42,6 +43,7 @@ QDrag.exec_ = exec_
QEventLoop.exec_ = exec_ QEventLoop.exec_ = exec_
QThread.exec_ = exec_ QThread.exec_ = exec_
QMessageBox.exec_ = exec_ QMessageBox.exec_ = exec_
QCoreApplication.exec_ = exec_
# Restore ability to associate a menu with an action # Restore ability to associate a menu with an action