QScintilla/MiniEditor.py

branch
5_0_x
changeset 403
c5bd65142984
parent 163
8f0630371845
child 450
4c6920a05411
equal deleted inserted replaced
402:2cd7333e0202 403:c5bd65142984
66 try: 66 try:
67 self.setCaretWidth(self.mw.caretWidth) 67 self.setCaretWidth(self.mw.caretWidth)
68 except AttributeError: 68 except AttributeError:
69 pass 69 pass
70 70
71 self.setCursorFlashTime(QApplication.cursorFlashTime())
72
71 QsciScintillaCompat.focusInEvent(self, event) 73 QsciScintillaCompat.focusInEvent(self, event)
72 74
73 def focusOutEvent(self, event): 75 def focusOutEvent(self, event):
74 """ 76 """
75 Public method called when the editor loses focus. 77 Public method called when the editor loses focus.
1762 QsciScintilla.WrapFlagNone, QsciScintilla.WrapFlagNone) 1764 QsciScintilla.WrapFlagNone, QsciScintilla.WrapFlagNone)
1763 1765
1764 self.searchIndicator = QsciScintilla.INDIC_CONTAINER 1766 self.searchIndicator = QsciScintilla.INDIC_CONTAINER
1765 self.__textEdit.indicatorDefine(self.searchIndicator, QsciScintilla.INDIC_BOX, 1767 self.__textEdit.indicatorDefine(self.searchIndicator, QsciScintilla.INDIC_BOX,
1766 Preferences.getEditorColour("SearchMarkers")) 1768 Preferences.getEditorColour("SearchMarkers"))
1769
1770 self.__textEdit.setCursorFlashTime(QApplication.cursorFlashTime())
1767 1771
1768 def __setEolMode(self): 1772 def __setEolMode(self):
1769 """ 1773 """
1770 Private method to configure the eol mode of the editor. 1774 Private method to configure the eol mode of the editor.
1771 """ 1775 """

eric ide

mercurial