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

fileview: add an integrated search bar, add its action to the toolbar

Changeset 1cc18a91e02a

Parent 790b458f0881

by Steve Borho

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

 
146
147
148
 
 
 
 
 
 
149
150
151
 
178
179
180
 
 
 
 
181
182
183
 
185
186
187
 
 
188
189
190
 
146
147
148
149
150
151
152
153
154
155
156
157
 
184
185
186
187
188
189
190
191
192
193
 
195
196
197
198
199
200
201
202
@@ -146,6 +146,12 @@
  self._annotate.setAnnotationEnabled(True)   self._stacked.addWidget(self._annotate)   + self.searchbar = qscilib.SearchToolBar(hidable=True) + self.searchbar.hide() + self.searchbar.searchRequested.connect(self.find) + self.searchbar.conditionChanged.connect(self.highlightText) + self.layout().addWidget(self.searchbar) +   self._ctx = None   self._filename = None   self._status = None @@ -178,6 +184,10 @@
    self.forceMode('diff')   + self.actionFind = self.searchbar.toggleViewAction() + self.actionFind.setIcon(qtlib.geticon('edit-find')) + self.actionFind.setShortcut(QKeySequence.Find) +   tb = self.diffToolbar   tb.addAction(self.actionDiffMode)   tb.addAction(self.actionFileMode) @@ -185,6 +195,8 @@
  tb.addSeparator()   tb.addAction(self.actionNextDiff)   tb.addAction(self.actionPrevDiff) + tb.addSeparator() + tb.addAction(self.actionFind)     self.actionNextLine = QAction('Next line', self)   self.actionNextLine.setShortcut(Qt.SHIFT + Qt.Key_Down)