mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Restore QCoreApplication.exec_
This commit is contained in:
parent
a48fae501f
commit
aee016b897
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user