Skip to content

Commit bbbb99b

Browse files
committed
QWheelEvent.orientation() is obsolete, used angleDelta() instead
1 parent 3afb35a commit bbbb99b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bitmessageqt/messagecompose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def wheelEvent(self, event):
1717
if (
1818
(QtWidgets.QApplication.queryKeyboardModifiers()
1919
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
20-
and event.orientation() == QtCore.Qt.Vertical
20+
and event.angleDelta().y() != 0
2121
):
2222
if event.delta() > 0:
2323
self.zoomIn(1)

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
59-
and event.orientation() == QtCore.Qt.Vertical
59+
and event.angleDelta().y() != 0
6060
):
6161
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
6262
QtWidgets.QApplication.activeWindow().statusbar.showMessage(

0 commit comments

Comments
 (0)