From acaa2743ef6a5b2e4e47063ab9593f1c3cc3c097 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 1 Mar 2018 17:40:13 +0200 Subject: [PATCH] QWheelEvent.orientation() is obsolete, used angleDelta() instead --- src/bitmessageqt/messagecompose.py | 2 +- src/bitmessageqt/messageview.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitmessageqt/messagecompose.py b/src/bitmessageqt/messagecompose.py index 0114400d..c520030b 100644 --- a/src/bitmessageqt/messagecompose.py +++ b/src/bitmessageqt/messagecompose.py @@ -17,7 +17,7 @@ class MessageCompose(QtWidgets.QTextEdit): if ( (QtWidgets.QApplication.queryKeyboardModifiers() & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier - and event.orientation() == QtCore.Qt.Vertical + and event.angleDelta().y() != 0 ): if event.delta() > 0: self.zoomIn(1) diff --git a/src/bitmessageqt/messageview.py b/src/bitmessageqt/messageview.py index abd15785..364a92c2 100644 --- a/src/bitmessageqt/messageview.py +++ b/src/bitmessageqt/messageview.py @@ -56,7 +56,7 @@ class MessageView(QtWidgets.QTextBrowser): if ( (QtWidgets.QApplication.queryKeyboardModifiers() & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier - and event.orientation() == QtCore.Qt.Vertical + and event.angleDelta().y() != 0 ): zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize QtWidgets.QApplication.activeWindow().statusbar.showMessage(