Skip to content

Commit ec5f5ae

Browse files
committed
QWheelEvent.orientation() is obsolete, used angleDelta() instead
1 parent 9ab3db4 commit ec5f5ae

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
@@ -14,7 +14,7 @@ def wheelEvent(self, event):
1414
if (
1515
(QtWidgets.QApplication.queryKeyboardModifiers()
1616
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
17-
and event.orientation() == QtCore.Qt.Vertical
17+
and event.angleDelta().y() != 0
1818
):
1919
if event.delta() > 0:
2020
self.zoomIn(1)

src/bitmessageqt/messageview.py

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

0 commit comments

Comments
 (0)