aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
-rwxr-xr-xtools/perf/scripts/python/exported-sql-viewer.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py
index db4655168ab1..fd073e4af8da 100755
--- a/tools/perf/scripts/python/exported-sql-viewer.py
+++ b/tools/perf/scripts/python/exported-sql-viewer.py
@@ -2755,6 +2755,14 @@ class MainWindow(QMainWindow):
2755 help_menu = menu.addMenu("&Help") 2755 help_menu = menu.addMenu("&Help")
2756 help_menu.addAction(CreateAction("&Exported SQL Viewer Help", "Helpful information", self.Help, self, QKeySequence.HelpContents)) 2756 help_menu.addAction(CreateAction("&Exported SQL Viewer Help", "Helpful information", self.Help, self, QKeySequence.HelpContents))
2757 2757
2758 def Try(self, fn):
2759 win = self.mdi_area.activeSubWindow()
2760 if win:
2761 try:
2762 fn(win.view)
2763 except:
2764 pass
2765
2758 def Find(self): 2766 def Find(self):
2759 win = self.mdi_area.activeSubWindow() 2767 win = self.mdi_area.activeSubWindow()
2760 if win: 2768 if win:
@@ -2772,12 +2780,10 @@ class MainWindow(QMainWindow):
2772 pass 2780 pass
2773 2781
2774 def ShrinkFont(self): 2782 def ShrinkFont(self):
2775 win = self.mdi_area.activeSubWindow() 2783 self.Try(ShrinkFont)
2776 ShrinkFont(win.view)
2777 2784
2778 def EnlargeFont(self): 2785 def EnlargeFont(self):
2779 win = self.mdi_area.activeSubWindow() 2786 self.Try(EnlargeFont)
2780 EnlargeFont(win.view)
2781 2787
2782 def EventMenu(self, events, reports_menu): 2788 def EventMenu(self, events, reports_menu):
2783 branches_events = 0 2789 branches_events = 0