eric6/HexEdit/HexEditGotoWidget.py

changeset 7775
4a1db75550bd
parent 7533
88261c96484b
child 7780
41420f82c0ac
--- a/eric6/HexEdit/HexEditGotoWidget.py	Sat Oct 10 16:03:53 2020 +0200
+++ b/eric6/HexEdit/HexEditGotoWidget.py	Sun Oct 11 17:54:52 2020 +0200
@@ -8,8 +8,8 @@
 """
 
 
-from PyQt5.QtCore import pyqtSlot, Qt, QRegExp
-from PyQt5.QtGui import QRegExpValidator
+from PyQt5.QtCore import pyqtSlot, Qt, QRegularExpression
+from PyQt5.QtGui import QRegularExpressionValidator
 from PyQt5.QtWidgets import QWidget
 
 from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget
@@ -38,8 +38,10 @@
         
         # keep this in sync with the logic in on_gotoButton_clicked()
         self.__formatAndValidators = {
-            "hex": (self.tr("Hex"), QRegExpValidator((QRegExp("[0-9a-f:]*")))),
-            "dec": (self.tr("Dec"), QRegExpValidator((QRegExp("[0-9]*")))),
+            "hex": (self.tr("Hex"), QRegularExpressionValidator(
+                QRegularExpression("[0-9a-f:]*"))),
+            "dec": (self.tr("Dec"), QRegularExpressionValidator(
+                QRegularExpression("[0-9]*"))),
         }
         formatOrder = ["hex", "dec"]
         

eric ide

mercurial