QScintilla/QsciScintillaCompat.py

branch
5_4_x
changeset 3258
a2bec950a859
parent 3240
7cb4665c9c05
child 3379
dcf9f81f2ae5
equal deleted inserted replaced
3254:27c2b183eca7 3258:a2bec950a859
1186 if aw is None or aw.parent() is not self: 1186 if aw is None or aw.parent() is not self:
1187 self.cancelList() 1187 self.cancelList()
1188 else: 1188 else:
1189 self.cancelList() 1189 self.cancelList()
1190 1190
1191 if self.isCallTipActive():
1192 if event.reason() == Qt.ActiveWindowFocusReason:
1193 aw = QApplication.activeWindow()
1194 if aw is None or aw.parent() is not self:
1195 self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL)
1196 else:
1197 self.SendScintilla(QsciScintilla.SCI_CALLTIPCANCEL)
1198
1191 super().focusOutEvent(event) 1199 super().focusOutEvent(event)
1192 1200
1193 def event(self, evt): 1201 def event(self, evt):
1194 """ 1202 """
1195 Protected method to handle events. 1203 Protected method to handle events.

eric ide

mercurial