mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-23 16:43:11 +02:00
Fix #7753 (setPlaceholderText not found)
This commit is contained in:
parent
fa0799597d
commit
983da07095
1 changed files with 5 additions and 1 deletions
|
|
@ -236,7 +236,11 @@ def __init__(self, parent=None):
|
|||
|
||||
def initialize(self, _search_box, colorize=False, help_text=_('Search')):
|
||||
self.search_box = _search_box
|
||||
self.line_edit.setPlaceholderText(help_text)
|
||||
try:
|
||||
self.line_edit.setPlaceholderText(help_text)
|
||||
except:
|
||||
# Using Qt < 4.7
|
||||
pass
|
||||
self.colorize = colorize
|
||||
self.clear()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue