From 26e2c211c8f35365e1d3d75ce1cfd43055fabf3f 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/messageview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/messageview.py b/src/bitmessageqt/messageview.py index 3a1bc7c3..a075e373 100644 --- a/src/bitmessageqt/messageview.py +++ b/src/bitmessageqt/messageview.py @@ -45,9 +45,9 @@ class MessageView(QtWidgets.QTextBrowser): # super will actually automatically take care of zooming super(MessageView, self).wheelEvent(event) if ( - (QtWidgets.QApplication.queryKeyboardModifiers() - & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier - and event.orientation() == QtCore.Qt.Vertical + (QtWidgets.QApplication.queryKeyboardModifiers() + & QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier + and event.angleDelta().y() != 0 ): zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize QtWidgets.QApplication.activeWindow().statusbar.showMessage(