mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:53:27 +02:00
Edit book: Make the saved search panel freely resizable
This commit is contained in:
parent
8d8ee82288
commit
91697b777a
1 changed files with 3 additions and 2 deletions
|
|
@ -880,10 +880,10 @@ def __init__(self, parent=None):
|
|||
|
||||
def setup_ui(self):
|
||||
self.l = l = QVBoxLayout(self)
|
||||
self.setLayout(l)
|
||||
|
||||
self.filter_text = ft = QLineEdit(self)
|
||||
ft.setClearButtonEnabled(True)
|
||||
ft.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Fixed)
|
||||
ft.textChanged.connect(self.do_filter)
|
||||
ft.setPlaceholderText(_('Filter displayed searches'))
|
||||
l.addWidget(ft)
|
||||
|
|
@ -893,7 +893,8 @@ def setup_ui(self):
|
|||
self.stack = stack = QStackedLayout()
|
||||
self.main_widget = mw = QWidget(self)
|
||||
stack.addWidget(mw)
|
||||
self.edit_search_widget = es = EditSearch(mw)
|
||||
self.edit_search_widget = es = EditSearch(self)
|
||||
es.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Preferred)
|
||||
stack.addWidget(es)
|
||||
es.done.connect(self.search_editing_done)
|
||||
mw.v = QVBoxLayout(mw)
|
||||
|
|
|
|||
Loading…
Reference in a new issue