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. |