eric6/HexEdit/HexEditSearchReplaceWidget.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/HexEdit/HexEditSearchReplaceWidget.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/HexEdit/HexEditSearchReplaceWidget.py	Tue Mar 02 17:17:09 2021 +0100
@@ -469,7 +469,7 @@
         """
         Private slot to close the widget.
         """
-        self.__editor.setFocus(Qt.OtherFocusReason)
+        self.__editor.setFocus(Qt.FocusReason.OtherFocusReason)
         self.close()
 
     def keyPressEvent(self, event):
@@ -479,7 +479,7 @@
         @param event reference to the key press event
         @type QKeyEvent
         """
-        if event.key() == Qt.Key_Escape:
+        if event.key() == Qt.Key.Key_Escape:
             self.close()
     
     def __convertText(self, txt, oldFormat, newFormat):

eric ide

mercurial