Skip to content

Commit 6023bc5

Browse files
committed
QWheelEvent.orientation() is obsolete, used angleDelta() instead
1 parent 1c34d62 commit 6023bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bitmessageqt/messageview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def wheelEvent(self, event):
5656
if (
5757
(QtWidgets.QApplication.queryKeyboardModifiers() &
5858
QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier and
59-
event.orientation() == QtCore.Qt.Vertical
59+
event.angleDelta().y() != 0
6060
):
6161
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
6262
QtWidgets.QApplication.activeWindow().statusbar.showMessage(

0 commit comments

Comments
 (0)