Add a tooltip to Replace All

This commit is contained in:
Kovid Goyal 2024-11-24 11:06:24 +05:30
parent 3c0bbde1b9
commit 149ccef977
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -328,6 +328,8 @@ class SearchWidget(QWidget):
self.rfb = rfb = PushButton(_('Replace a&nd Find'), 'replace-find', self) self.rfb = rfb = PushButton(_('Replace a&nd Find'), 'replace-find', self)
self.rb = rb = PushButton(_('Re&place'), 'replace', self) self.rb = rb = PushButton(_('Re&place'), 'replace', self)
self.rab = rab = PushButton(_('Replace &all'), 'replace-all', self) self.rab = rab = PushButton(_('Replace &all'), 'replace-all', self)
rab.setToolTip(_('Replace all occurrences, ignoring wrap and current position.'))
l.addWidget(fb, 0, 2) l.addWidget(fb, 0, 2)
l.addWidget(rfb, 0, 3) l.addWidget(rfb, 0, 3)
l.addWidget(rb, 1, 2) l.addWidget(rb, 1, 2)
@ -1423,7 +1425,7 @@ def run_search(
if isinstance(searches, dict): if isinstance(searches, dict):
searches = [searches] searches = [searches]
editor, where, files, do_all, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names) editor, where, files, do_all_, marked = initialize_search_request(searches[0], action, current_editor, current_editor_name, searchable_names)
wrap = searches[0]['wrap'] wrap = searches[0]['wrap']
errfind = searches[0]['find'] errfind = searches[0]['find']