mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
...
This commit is contained in:
parent
8da6550a36
commit
a4f1f64ff8
1 changed files with 5 additions and 0 deletions
|
|
@ -183,6 +183,11 @@ def set_add_separator(self, what):
|
|||
self.lineEdit().set_add_separator(what)
|
||||
|
||||
def show_initial_value(self, what):
|
||||
'''
|
||||
Show an initial value. Handle the case of the initial value being blank
|
||||
correctly (on Qt 4.8.0 having a blank value causes the first value from
|
||||
the completer to be shown, when the event loop runs).
|
||||
'''
|
||||
what = unicode(what)
|
||||
le = self.lineEdit()
|
||||
if not what.strip():
|
||||
|
|
|
|||
Loading…
Reference in a new issue