From 64cbbc1233b35f094674df986751f10198721122 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 eee48766..a4bfccda 100644 --- a/src/bitmessageqt/messagecompose.py +++ b/src/bitmessageqt/messagecompose.py @@ -14,7 +14,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 a94010f1..ebf23c87 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(