257 """ |
257 """ |
258 Public slot to deactivate the widget. |
258 Public slot to deactivate the widget. |
259 """ |
259 """ |
260 if self.__textedit: |
260 if self.__textedit: |
261 self.__textedit.setFocus(Qt.FocusReason.ActiveWindowFocusReason) |
261 self.__textedit.setFocus(Qt.FocusReason.ActiveWindowFocusReason) |
|
262 if self.__texteditType == EricTextEditType.QWEBENGINEVIEW: |
|
263 self.__textedit.findText("") |
262 if self.closeButton is not None: |
264 if self.closeButton is not None: |
263 self.hide() |
265 self.hide() |
264 self.closePressed.emit() |
266 self.closePressed.emit() |
265 |
267 |
266 @pyqtSlot() |
268 @pyqtSlot() |