QScintilla/QsciScintillaCompat.py

branch
5_1_x
changeset 1442
ba75374fc164
parent 826
2e3e2055e715
child 1510
e75ecf2bd9dd
--- a/QScintilla/QsciScintillaCompat.py	Sun Nov 13 13:59:04 2011 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sun Nov 13 19:13:43 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
 
 
 #####################################################################################
@@ -1003,6 +1004,17 @@
             self.cancelList()
         
         QsciScintilla.focusOutEvent(self, 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