QScintilla/QsciScintillaCompat.py

changeset 3257
a2b4a45e14de
parent 3238
fa28dab59a9e
child 3378
b88e7fd6c009
--- a/QScintilla/QsciScintillaCompat.py	Sat Feb 01 17:47:46 2014 +0100
+++ b/QScintilla/QsciScintillaCompat.py	Sat Feb 01 18:41:02 2014 +0100
@@ -1188,6 +1188,14 @@
             else:
                 self.cancelList()
         
+        if self.isCallTipActive():
+            if event.reason() == Qt.ActiveWindowFocusReason:
+                aw = QApplication.activeWindow()
+                if aw is None or aw.parent() is not self:
+                    self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL)
+            else:
+                self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL)
+        
         super().focusOutEvent(event)
     
     def event(self, evt):

eric ide

mercurial