QScintilla/QsciScintillaCompat.py

branch
6_0_x
changeset 4440
d3c84c471c32
parent 4330
2c278493b31e
--- a/QScintilla/QsciScintillaCompat.py	Sun Sep 06 11:23:53 2015 +0200
+++ b/QScintilla/QsciScintillaCompat.py	Thu Sep 03 23:01:02 2015 +0200
@@ -1338,6 +1338,15 @@
         """
         self.activateWindow()
     
+    def updateVerticalScrollBar(self):
+        """
+        Public method to update the vertical scroll bar to reflect the
+        additional lines added by annotations.
+        """
+        # Workaround because Scintilla.Redraw isn't implemented
+        self.SendScintilla(QsciScintilla.SCI_SETVSCROLLBAR, 0)
+        self.SendScintilla(QsciScintilla.SCI_SETVSCROLLBAR, 1)
+    
     ###########################################################################
     ## utility methods
     ###########################################################################

eric ide

mercurial