Runnable with both Python3 and Python2, with both PyQt5 and PyQt4 by using Qt.py #2250

Open
kashikoibumi wants to merge 127 commits from kashikoibumi/py3qt into v0.6
2 changed files with 2 additions and 2 deletions
Showing only changes of commit acaa2743ef - Show all commits

View File

@ -17,7 +17,7 @@ class MessageCompose(QtWidgets.QTextEdit):
if ( if (
(QtWidgets.QApplication.queryKeyboardModifiers() (QtWidgets.QApplication.queryKeyboardModifiers()
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
and event.orientation() == QtCore.Qt.Vertical and event.angleDelta().y() != 0
): ):
if event.delta() > 0: if event.delta() > 0:
self.zoomIn(1) self.zoomIn(1)

View File

@ -56,7 +56,7 @@ class MessageView(QtWidgets.QTextBrowser):
if ( if (
(QtWidgets.QApplication.queryKeyboardModifiers() (QtWidgets.QApplication.queryKeyboardModifiers()
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
and event.orientation() == QtCore.Qt.Vertical and event.angleDelta().y() != 0
): ):
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
QtWidgets.QApplication.activeWindow().statusbar.showMessage( QtWidgets.QApplication.activeWindow().statusbar.showMessage(