mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 06:23:42 +02:00
...
This commit is contained in:
parent
166aa99b27
commit
91f37ca343
1 changed files with 2 additions and 1 deletions
|
|
@ -648,7 +648,8 @@ def handle_gesture(ev, view):
|
|||
return True
|
||||
th = ev.gesture(Qt.TapAndHoldGesture)
|
||||
if th and th.state() in (Qt.GestureStarted, Qt.GestureUpdated, Qt.GestureFinished):
|
||||
send_click(view, th.position(), button=Qt.RightButton)
|
||||
if th.state() == Qt.GestureFinished:
|
||||
send_click(view, th.position(), button=Qt.RightButton)
|
||||
ev.accept(Qt.TapAndHoldGesture)
|
||||
return True
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in a new issue