1177 Public method called when the editor loses focus. |
1177 Public method called when the editor loses focus. |
1178 |
1178 |
1179 @param event event object (QFocusEvent) |
1179 @param event event object (QFocusEvent) |
1180 """ |
1180 """ |
1181 if self.isListActive(): |
1181 if self.isListActive(): |
1182 self.cancelList() |
1182 if event.reason() == Qt.ActiveWindowFocusReason: |
|
1183 aw = QApplication.activeWindow() |
|
1184 if aw is None or aw.parent() is not self: |
|
1185 self.cancelList() |
|
1186 else: |
|
1187 self.cancelList() |
1183 |
1188 |
1184 super().focusOutEvent(event) |
1189 super().focusOutEvent(event) |
1185 |
1190 |
1186 def event(self, evt): |
1191 def event(self, evt): |
1187 """ |
1192 """ |