QScintilla/Editor.py

changeset 404
44a541bea034
parent 342
360c4eb76d6c
child 429
dcc623c99907
equal deleted inserted replaced
401:54b80c7a802b 404:44a541bea034
3338 self.spellingIndicator = QsciScintilla.INDIC_CONTAINER + 1 3338 self.spellingIndicator = QsciScintilla.INDIC_CONTAINER + 1
3339 self.indicatorDefine(self.spellingIndicator, QsciScintilla.INDIC_SQUIGGLE, 3339 self.indicatorDefine(self.spellingIndicator, QsciScintilla.INDIC_SQUIGGLE,
3340 Preferences.getEditorColour("SpellingMarkers")) 3340 Preferences.getEditorColour("SpellingMarkers"))
3341 self.__setSpelling() 3341 self.__setSpelling()
3342 3342
3343 self.setCursorFlashTime(QApplication.cursorFlashTime())
3344
3343 def __setEolMode(self): 3345 def __setEolMode(self):
3344 """ 3346 """
3345 Private method to configure the eol mode of the editor. 3347 Private method to configure the eol mode of the editor.
3346 """ 3348 """
3347 if self.fileName and \ 3349 if self.fileName and \
4804 else: 4806 else:
4805 # do not prompt for this change again... 4807 # do not prompt for this change again...
4806 self.lastModified = QFileInfo(self.fileName).lastModified() 4808 self.lastModified = QFileInfo(self.fileName).lastModified()
4807 self.inReopenPrompt = False 4809 self.inReopenPrompt = False
4808 4810
4811 self.setCursorFlashTime(QApplication.cursorFlashTime())
4812
4809 QsciScintillaCompat.focusInEvent(self, event) 4813 QsciScintillaCompat.focusInEvent(self, event)
4810 4814
4811 def focusOutEvent(self, event): 4815 def focusOutEvent(self, event):
4812 """ 4816 """
4813 Public method called when the editor loses focus. 4817 Public method called when the editor loses focus.

eric ide

mercurial