eric6/HexEdit/HexEditGotoWidget.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/HexEdit/HexEditGotoWidget.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/HexEdit/HexEditGotoWidget.py	Tue Mar 02 17:17:09 2021 +0100
@@ -59,7 +59,7 @@
         """
         Private slot to close the widget.
         """
-        self.__editor.setFocus(Qt.OtherFocusReason)
+        self.__editor.setFocus(Qt.FocusReason.OtherFocusReason)
         self.close()
     
     @pyqtSlot(int)
@@ -139,7 +139,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