mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-06 12:44:35 +01:00
more pyqt6 enum goodness
This commit is contained in:
parent
3288b2a4e4
commit
dd0414e11b
1 changed files with 1 additions and 1 deletions
|
|
@ -1159,7 +1159,7 @@ def selectionCommand(self, index, event):
|
|||
return super().selectionCommand(index, event)
|
||||
|
||||
def wheelEvent(self, ev):
|
||||
if ev.phase() not in (Qt.ScrollPhase.ScrollUpdate, 0, Qt.ScrollPhase.ScrollMomentum):
|
||||
if ev.phase() not in (Qt.ScrollPhase.ScrollUpdate, Qt.ScrollPhase.NoScrollPhase, Qt.ScrollPhase.ScrollMomentum):
|
||||
return
|
||||
number_of_pixels = ev.pixelDelta()
|
||||
number_of_degrees = ev.angleDelta() / 8.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue