mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1928574 [[Enhancement - Edit book] Move clear filter button inside the search field of the Saved searches](https://bugs.launchpad.net/calibre/+bug/1928574)
This commit is contained in:
parent
a6f1bea259
commit
ed62171495
@ -885,16 +885,11 @@ class SavedSearches(QWidget):
|
||||
self.l = l = QVBoxLayout(self)
|
||||
self.setLayout(l)
|
||||
|
||||
self.h = h = QHBoxLayout()
|
||||
self.filter_text = ft = QLineEdit(self)
|
||||
ft.setClearButtonEnabled(True)
|
||||
ft.textChanged.connect(self.do_filter)
|
||||
ft.setPlaceholderText(_('Filter displayed searches'))
|
||||
h.addWidget(ft)
|
||||
self.cft = cft = QToolButton(self)
|
||||
cft.setToolTip(_('Clear filter')), cft.setIcon(QIcon(I('clear_left.png')))
|
||||
cft.clicked.connect(ft.clear)
|
||||
h.addWidget(cft)
|
||||
l.addLayout(h)
|
||||
l.addWidget(ft)
|
||||
|
||||
self.h2 = h = QHBoxLayout()
|
||||
self.searches = searches = QListView(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user