mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Set completion mode on search boxes to popup completion
This commit is contained in:
parent
1a8f2bd513
commit
6124f2dbe1
1 changed files with 2 additions and 0 deletions
|
|
@ -73,6 +73,8 @@ def __init__(self, parent=None):
|
|||
self.normal_background = 'rgb(255, 255, 255, 0%)'
|
||||
self.line_edit = SearchLineEdit(self)
|
||||
self.setLineEdit(self.line_edit)
|
||||
c = self.line_edit.completer()
|
||||
c.setCompletionMode(c.PopupCompletion)
|
||||
self.line_edit.key_pressed.connect(self.key_pressed,
|
||||
type=Qt.DirectConnection)
|
||||
self.line_edit.mouse_released.connect(self.mouse_released,
|
||||
|
|
|
|||
Loading…
Reference in a new issue