5178 (jump back to text). |
5178 (jump back to text). |
5179 """ |
5179 """ |
5180 if self.quickFindtextCombo.lastActive: |
5180 if self.quickFindtextCombo.lastActive: |
5181 self.quickFindtextCombo.lastActive.setFocus() |
5181 self.quickFindtextCombo.lastActive.setFocus() |
5182 aw = self.activeWindow() |
5182 aw = self.activeWindow() |
5183 if aw and self.quickFindtextCombo.lastCursorPos: |
5183 if aw: |
5184 aw.setCursorPosition(self.quickFindtextCombo.lastCursorPos[0], |
5184 aw.hideFindIndicator() |
5185 self.quickFindtextCombo.lastCursorPos[1]) |
5185 if self.quickFindtextCombo.lastCursorPos: |
|
5186 aw.setCursorPosition( |
|
5187 self.quickFindtextCombo.lastCursorPos[0], |
|
5188 self.quickFindtextCombo.lastCursorPos[1]) |
|
5189 |
5186 if self.__quickSearchToolbarVisibility is not None: |
5190 if self.__quickSearchToolbarVisibility is not None: |
5187 self.__quickSearchToolbar.setVisible( |
5191 self.__quickSearchToolbar.setVisible( |
5188 self.__quickSearchToolbarVisibility) |
5192 self.__quickSearchToolbarVisibility) |
5189 self.__quickSearchToolbarVisibility = None |
5193 self.__quickSearchToolbarVisibility = None |
5190 |
5194 |
5251 """ |
5255 """ |
5252 aw = self.activeWindow() |
5256 aw = self.activeWindow() |
5253 if not aw: |
5257 if not aw: |
5254 return |
5258 return |
5255 |
5259 |
|
5260 aw.hideFindIndicator() |
|
5261 |
5256 text = self.quickFindtextCombo.lineEdit().text() |
5262 text = self.quickFindtextCombo.lineEdit().text() |
5257 if not text and again: |
5263 if not text and again: |
5258 text = self.quickFindtextCombo.lastSearchText |
5264 text = self.quickFindtextCombo.lastSearchText |
5259 if not text: |
5265 if not text: |
5260 if Preferences.getEditor("QuickSearchMarkersEnabled"): |
5266 if Preferences.getEditor("QuickSearchMarkersEnabled"): |
5284 ok = aw.findFirst(text, False, False, False, True, not back, |
5290 ok = aw.findFirst(text, False, False, False, True, not back, |
5285 cline, cindex) |
5291 cline, cindex) |
5286 else: |
5292 else: |
5287 ok = aw.findFirst(text, False, False, False, True, not back, |
5293 ok = aw.findFirst(text, False, False, False, True, not back, |
5288 lineFrom, indexFrom) |
5294 lineFrom, indexFrom) |
|
5295 if ok: |
|
5296 sline, sindex, eline, eindex = aw.getSelection() |
|
5297 aw.showFindIndicator(sline, sindex, eline, eindex) |
5289 self.__quickSearchSetEditColors(not ok) |
5298 self.__quickSearchSetEditColors(not ok) |
5290 |
5299 |
5291 def __quickSearchSetEditColors(self, error): |
5300 def __quickSearchSetEditColors(self, error): |
5292 """ |
5301 """ |
5293 Private method to set the quick search edit colors. |
5302 Private method to set the quick search edit colors. |