Commit 3bd6e6e8 authored by Steve Borho's avatar Steve Borho
Browse files

qscilib: override search bar setVisible to give line entry focus

parent fe6b56dabcc2
......@@ -353,6 +353,12 @@ class SearchToolBar(QToolBar):
return
super(SearchToolBar, self).wheelEvent(event)
def setVisible(self, visible=True):
super(SearchToolBar, self).setVisible(visible)
if visible:
self._le.setFocus()
self._le.selectAll()
def _readsettings(self):
self.setCaseInsensitive(self._settings.value('icase', False).toBool())
self.setWrapAround(self._settings.value('wrap', False).toBool())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment