aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2019-05-20 07:37:28 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-06-05 08:47:58 -0400
commit80b3fb64a55a7e4ba1ef8f9a7e87fbe1a26dc709 (patch)
tree11948ab023f55297cdeaa290ccc45c20e0ea0d4a /tools/perf/scripts/python/exported-sql-viewer.py
parentb3b660792e049c7ef4a40c4caa7008efd4777b3c (diff)
perf scripts python: exported-sql-viewer.py: Select find text when find bar is activated
The user probably wants to replace the find text, so select the find text when the find bar is activated. That is fairly standard behaviour for search text entry. Entering text will replace the current text, but using edit keys (arrows, home, end etc) cancels the selection and enables editing. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20190520113728.14389-23-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
-rwxr-xr-xtools/perf/scripts/python/exported-sql-viewer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py
index 94489cf2ce0e..6e7934f2ac9a 100755
--- a/tools/perf/scripts/python/exported-sql-viewer.py
+++ b/tools/perf/scripts/python/exported-sql-viewer.py
@@ -400,6 +400,7 @@ class FindBar():
400 400
401 def Activate(self): 401 def Activate(self):
402 self.bar.show() 402 self.bar.show()
403 self.textbox.lineEdit().selectAll()
403 self.textbox.setFocus() 404 self.textbox.setFocus()
404 405
405 def Deactivate(self): 406 def Deactivate(self):