History

perf scripts python: call-graph-from-sql.py: Change icon

There are not many standard icons, but the computer icon looks slightly better than the information icon. Committer testing: Noticed the change on the icon on the gnome menu right next to the "Activities" menu, looks nicer indeed.

Adrian Hunter committed 8 years ago

Commit 99a097c1 parent 3c4ef451 file · +1 −3Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/call-graph-from-sql.py+1−3
@@ -271,9 +271,7 @@ class MainWindow(QMainWindow): · 270 unmodified lines
271 self.setWindowTitle("Call Graph: " + dbname)271 self.setWindowTitle("Call Graph: " + dbname)
272 self.move(100, 100)272 self.move(100, 100)
273 self.resize(800, 600)273 self.resize(800, 600)
274 style = self.style()274 self.setWindowIcon(self.style().standardIcon(QStyle.SP_ComputerIcon))
275 icon = style.standardIcon(QStyle.SP_MessageBoxInformation)
276 self.setWindowIcon(icon);
277 self.setMinimumSize(200, 100)275 self.setMinimumSize(200, 100)
278 276
279 self.model = TreeModel(db)277 self.model = TreeModel(db)