mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
166aa99b27
commit
91f37ca343
@ -648,6 +648,7 @@ def handle_gesture(ev, view):
|
|||||||
return True
|
return True
|
||||||
th = ev.gesture(Qt.TapAndHoldGesture)
|
th = ev.gesture(Qt.TapAndHoldGesture)
|
||||||
if th and th.state() in (Qt.GestureStarted, Qt.GestureUpdated, Qt.GestureFinished):
|
if th and th.state() in (Qt.GestureStarted, Qt.GestureUpdated, Qt.GestureFinished):
|
||||||
|
if th.state() == Qt.GestureFinished:
|
||||||
send_click(view, th.position(), button=Qt.RightButton)
|
send_click(view, th.position(), button=Qt.RightButton)
|
||||||
ev.accept(Qt.TapAndHoldGesture)
|
ev.accept(Qt.TapAndHoldGesture)
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user