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

manifestdialog: add search bar's toggle action to toolbar

Changeset 8106c04d7f31

Parent 50e813b3b008

by Steve Borho

Changes to one file · Browse files at 8106c04d7f31 Showing diff from parent 50e813b3b008 Diff from another changeset...

 
182
183
184
 
 
 
 
 
 
185
186
187
 
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
 
182
183
184
185
186
187
188
189
190
191
192
193
 
440
441
442
 
 
 
 
 
 
 
 
 
443
444
445
@@ -182,6 +182,12 @@
  self._action_annotate_mode.setEnabled(self.rev is not None)   self._toolbar.addAction(self._action_annotate_mode)   + if hasattr(self, '_searchbar'): + self._action_find = self._searchbar.toggleViewAction() + self._action_find.setIcon(qtlib.geticon('edit-find')) + self._action_find.setShortcut(QKeySequence.Find) + self._toolbar.addAction(self._action_find) +   self._actions = {}   for name, desc, icon, key, tip, cb in [   ('navigate', _('File history'), None, 'Shift+Return', @@ -434,15 +440,6 @@
  super(ManifestTaskWidget, self).__init__(repo, rev, parent)   self.editSelected.connect(self._openInEditor)   - @pyqtSlot() - def toggleSearchBar(self): - vis = self._searchbar.isVisible() - if vis: - self._searchbar.hide() - else: - self._searchbar.show() - self._searchbar.setFocus() -   @util.propertycache   def _searchbar(self):   searchbar = qscilib.SearchToolBar(hidable=True)