mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
complete2: Workaround for underMouse() not working in Qt5
This commit is contained in:
parent
30a23188c2
commit
db8bc6c134
@ -245,7 +245,7 @@ class Completer(QListView): # {{{
|
||||
if e.isAccepted():
|
||||
return True
|
||||
elif etype == e.MouseButtonPress:
|
||||
if not self.underMouse():
|
||||
if not self.rect().contains(self.mapFromGlobal(e.globalPos())):
|
||||
QTimer.singleShot(0, self.hide)
|
||||
e.accept()
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user