Skip to content

Commit 67d7181

Browse files
ref: update regex validation to use QRegularExpression and QRegularExpressionValidator
1 parent 14be4be commit 67d7181

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dcoraid/gui/upload/dlg_upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def __init__(self, *args, **kwargs):
102102
self.comboBox_preset.addItems(sorted(self.presets.keys()))
103103

104104
# Restrict characters for line edit
105-
regex = QtCore.QRegExp(job.VALID_RESOURCE_REGEXP)
106-
validator = QtGui.QRegExpValidator(regex)
105+
regex = QtCore.QRegularExpression(job.VALID_RESOURCE_REGEXP)
106+
validator = QtGui.QRegularExpressionValidator(regex)
107107
self.lineEdit_res_filename.setValidator(validator)
108108

109109
# Signals and slots

0 commit comments

Comments
 (0)