QScintilla/Editor.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2677
3d4277929fb3
parent 2768
eab35f6e709f
child 3056
9986ec0e559a
--- a/QScintilla/Editor.py	Mon Jul 08 21:47:26 2013 +0200
+++ b/QScintilla/Editor.py	Mon Jul 08 22:36:10 2013 +0200
@@ -48,6 +48,7 @@
     @signal redoAvailable(bool) emitted to signal the redo availability
     @signal cursorChanged(str, int, int) emitted when the cursor position
             was changed
+    @signal cursorLineChanged(int) emitted when the cursor line was changed
     @signal editorAboutToBeSaved(str) emitted before the editor is saved
     @signal editorSaved(str) emitted after the editor has been saved
     @signal editorRenamed(str) emitted after the editor got a new name
@@ -82,6 +83,7 @@
     undoAvailable = pyqtSignal(bool)
     redoAvailable = pyqtSignal(bool)
     cursorChanged = pyqtSignal(str, int, int)
+    cursorLineChanged = pyqtSignal(int)
     editorAboutToBeSaved = pyqtSignal(str)
     editorSaved = pyqtSignal(str)
     editorRenamed = pyqtSignal(str)
@@ -1585,6 +1587,9 @@
             self.__markOccurrencesTimer.stop()
             self.__markOccurrencesTimer.start()
         
+        if self.lastLine != line:
+            self.cursorLineChanged.emit(line)
+        
         if self.spell is not None:
             # do spell checking
             doSpelling = True

eric ide

mercurial