Fixed a compatibility issue with QScintilla 2.6.

Sun, 13 Nov 2011 19:14:57 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 13 Nov 2011 19:14:57 +0100
changeset 1443
9b9396fc54aa
parent 1440
268366c65cbb
child 1444
552d2d74f5cf

Fixed a compatibility issue with QScintilla 2.6.

QScintilla/QsciScintillaCompat.py file | annotate | diff | comparison | revisions
--- a/QScintilla/QsciScintillaCompat.py	Sun Nov 13 13:59:04 2011 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sun Nov 13 19:14:57 2011 +0100
@@ -10,7 +10,8 @@
 from PyQt4.QtCore import Qt
 from PyQt4.QtGui import QApplication, QPalette, QColor
 from PyQt4.Qsci import QsciScintilla, \
-    QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR
+    QSCINTILLA_VERSION as QsciQSCINTILLA_VERSION, QSCINTILLA_VERSION_STR, \
+    QsciScintillaBase
 
 
 ###############################################################################
@@ -979,12 +980,23 @@
         """
         Public method called when the editor loses focus.
         
-        @param event the event object (QFocusEvent)
+        @param event event object (QFocusEvent)
         """
         if self.isListActive():
             self.cancelList()
         
         super().focusOutEvent(event)
+    
+    def event(self, evt):
+        """
+        Public method to handle events.
+        
+        Note: We are not interested in the standard QsciScintilla event handling
+        because we do it our self.
+        
+        @param evt event object to handle (QEvent)
+        """
+        return QsciScintillaBase.event(self, evt)
 
     ###########################################################################
     # interface methods to the mini editor

eric ide

mercurial