Fix #1913888 [[Enhancement] Provide default button for search in TOC Edit](https://bugs.launchpad.net/calibre/+bug/1913888)

This commit is contained in:
Kovid Goyal 2021-01-30 22:30:52 +05:30
parent 985f9be4c9
commit 787a2d55fd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -131,6 +131,7 @@ class ItemEdit(QWidget):
self.search_text = s = QLineEdit(self)
s.setPlaceholderText(_('Search for text...'))
s.returnPressed.connect(self.find_next)
l.addWidget(s, 1, 0)
self.ns_button = b = QPushButton(QIcon(I('arrow-down.png')), _('Find &next'), self)
b.clicked.connect(self.find_next)