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

revdetails: remove searchbar, fix layout comment

Changeset 17e5547ccac8

Parent 1cc18a91e02a

by Steve Borho

Changes to one file · Browse files at 17e5547ccac8 Showing diff from parent 1cc18a91e02a Diff from another changeset...

 
61
62
63
64
 
65
66
67
68
69
70
71
72
73
74
75
 
167
168
169
170
171
172
173
174
175
176
177
178
 
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
 
212
213
214
215
216
217
218
 
61
62
63
 
64
65
66
67
68
69
70
 
 
71
72
73
 
165
166
167
 
 
 
 
 
 
168
169
170
 
178
179
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
182
183
 
188
189
190
 
191
192
193
@@ -61,15 +61,13 @@
  # + revisiondetails_layout -----------------------------------------+   # |+ filelist_splitter ........ |   # | + tbarFileListFrame (vbox)| + cset_and_file_details_frame (vbox)| - # | + diffToolbar | + revpanel | + # | + mergeToolbar | + revpanel |   # +---------------------------+-------------------------------------+   # | + filelist | + message_splitter |   # | | :+ message |   # | | :----------------------------------+   # | | + fileview |   # +---------------------------+-------------------------------------+ - # |+ searchbar | - # +-----------------------------------------------------------------+     revisiondetails_layout = QVBoxLayout(self)   revisiondetails_layout.setSpacing(0) @@ -167,12 +165,6 @@
    revisiondetails_layout.addWidget(self.filelist_splitter)   - self.searchbar = qscilib.SearchToolBar(hidable=True) - self.searchbar.hide() - self.searchbar.searchRequested.connect(self.fileview.find) - self.searchbar.conditionChanged.connect(self.fileview.highlightText) - revisiondetails_layout.addWidget(self.searchbar) - self.fileview.filled.connect(self._updateHighlightText)   self.filelist.fileRevSelected.connect(self._displayFile)   self.filelist.clearDisplay.connect(self.fileview.clearDisplay)   @@ -186,22 +178,6 @@
  self.actionActivateFileAlt.triggered.connect(fileActivated)   self.mergeToolBar.addAction(self.filelist.actionShowAllMerge)   - @pyqtSlot() - def toggleSearchBar(self): - vis = self.searchbar.isVisible() - if vis: - self.searchbar.hide() - else: - self.searchbar.show() - self.searchbar.setFocus() - - @pyqtSlot() - def _updateHighlightText(self): - if not self.searchbar.isVisible(): - return - self.fileview.highlightText(self.searchbar.pattern(), - self.searchbar.caseInsensitive()) -   def create_models(self):   self.filelistmodel = HgFileListModel(self.repo, self)   @@ -212,7 +188,6 @@
  @pyqtSlot(object, object, object)   def _displayFile(self, file, rev, status):   self.fileview.displayFile(file, rev, status) - self._updateHighlightText()     def revision_selected(self, rev):   self._last_rev = rev