QWheelEvent.orientation() is obsolete, used angleDelta() instead
This commit is contained in:
parent
376783603a
commit
26e2c211c8
|
@ -45,9 +45,9 @@ class MessageView(QtWidgets.QTextBrowser):
|
||||||
# super will actually automatically take care of zooming
|
# super will actually automatically take care of zooming
|
||||||
super(MessageView, self).wheelEvent(event)
|
super(MessageView, self).wheelEvent(event)
|
||||||
if (
|
if (
|
||||||
(QtWidgets.QApplication.queryKeyboardModifiers()
|
(QtWidgets.QApplication.queryKeyboardModifiers()
|
||||||
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
|
& QtCore.Qt.ControlModifier) == QtCore.Qt.ControlModifier
|
||||||
and event.orientation() == QtCore.Qt.Vertical
|
and event.angleDelta().y() != 0
|
||||||
):
|
):
|
||||||
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
|
zoom = self.currentFont().pointSize() * 100 / self.defaultFontPointSize
|
||||||
QtWidgets.QApplication.activeWindow().statusbar.showMessage(
|
QtWidgets.QApplication.activeWindow().statusbar.showMessage(
|
||||||
|
|
Reference in New Issue
Block a user