mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7753 (setPlaceholderText not found)
This commit is contained in:
parent
fa0799597d
commit
983da07095
@ -236,7 +236,11 @@ class SavedSearchBox(QComboBox):
|
||||
|
||||
def initialize(self, _search_box, colorize=False, help_text=_('Search')):
|
||||
self.search_box = _search_box
|
||||
try:
|
||||
self.line_edit.setPlaceholderText(help_text)
|
||||
except:
|
||||
# Using Qt < 4.7
|
||||
pass
|
||||
self.colorize = colorize
|
||||
self.clear()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user