mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:46:52 +02:00
Restore QCoreApplication.exec_
This commit is contained in:
parent
c370c2c522
commit
7475ded979
1 changed files with 6 additions and 4 deletions
|
|
@ -7,10 +7,11 @@
|
|||
# party plugin code, we NEED backward compat.
|
||||
|
||||
from qt.core import (
|
||||
QAbstractItemView, QAction, QComboBox, QDialog, QDialogButtonBox, QDrag,
|
||||
QDropEvent, QEvent, QEventLoop, QFontMetrics, QFormLayout, QFrame, QHoverEvent,
|
||||
QImage, QIODevice, QLayout, QLineEdit, QMenu, QMessageBox, QModelIndex, QPalette,
|
||||
QSinglePointEvent, QSizePolicy, Qt, QThread, QToolButton
|
||||
QAbstractItemView, QAction, QComboBox, QCoreApplication, QDialog,
|
||||
QDialogButtonBox, QDrag, QDropEvent, QEvent, QEventLoop, QFontMetrics,
|
||||
QFormLayout, QFrame, QHoverEvent, QImage, QIODevice, QLayout, QLineEdit, QMenu,
|
||||
QMessageBox, QModelIndex, QPalette, QSinglePointEvent, QSizePolicy, Qt, QThread,
|
||||
QToolButton
|
||||
)
|
||||
|
||||
from calibre_extensions import progress_indicator
|
||||
|
|
@ -42,6 +43,7 @@ def exec_(self):
|
|||
QEventLoop.exec_ = exec_
|
||||
QThread.exec_ = exec_
|
||||
QMessageBox.exec_ = exec_
|
||||
QCoreApplication.exec_ = exec_
|
||||
|
||||
|
||||
# Restore ability to associate a menu with an action
|
||||
|
|
|
|||
Loading…
Reference in a new issue