Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

workbench: connect dock.setVisible directly

It's simple enough not to define new slot function.
Moved action setup codes after initialization of docks, since it depends
on docks.

Changeset fa0f352cea88

Parent 77c9f7b76b92

by Yuya Nishihara

Changes to one file · Browse files at fa0f352cea88 Showing diff from parent 77c9f7b76b92 Diff from another changeset...

 
62
63
64
 
 
65
66
67
 
131
132
133
 
 
134
135
136
 
218
219
220
221
 
222
223
224
225
226
227
228
 
229
230
231
 
322
323
324
325
326
327
328
329
330
331
332
333
 
62
63
64
65
66
67
68
69
 
133
134
135
136
137
138
139
140
 
222
223
224
 
225
226
227
228
229
230
231
 
232
233
234
235
 
326
327
328
 
 
 
 
 
 
329
330
331
@@ -62,6 +62,8 @@
  self.log.progressReceived.connect(self.statusbar.progress)   self.addDockWidget(Qt.BottomDockWidgetArea, self.log)   + self._setupActions() +   rr.openRepoSignal.connect(self.openRepo)     self.repoTabChanged() @@ -131,6 +133,8 @@
  self.statusbar = cmdui.ThgStatusBar(self)   self.setStatusBar(self.statusbar)   + def _setupActions(self): + """Setup actions, menus and toolbars"""   self.menubar = QMenuBar(self)   self.setMenuBar(self.menubar)   @@ -218,14 +222,14 @@
  shortcut='Quit', menu='file')     self.actionShowRepoRegistry = \ - newaction(_("Show Repository Registry"), self.showRepoRegistry, + newaction(_("Show Repository Registry"), self.reporegistry.setVisible,   icon='repotree', checkable=True, menu='view',   toolbar='dock')   self.actionShowPaths = \   newaction(_("Show Paths"), self.actionShowPathsToggled,   checkable=True, menu='view')   self.actionShowLog = \ - newaction(_("Show Output &Log"), self.showLog, icon='showlog', + newaction(_("Show Output &Log"), self.log.setVisible, icon='showlog',   shortcut='Ctrl+L', checkable=True, menu='view',   toolbar='dock')   newseparator(menu='view') @@ -322,12 +326,6 @@
    self.updateMenu()   - def showRepoRegistry(self, show): - self.reporegistry.setVisible(show) - - def showLog(self, show): - self.log.setVisible(show) -   @pyqtSlot(QAction)   def _switchRepoTaskTab(self, action):   rw = self.repoTabsWidget.currentWidget()