Skip to content

Commit c1552e6

Browse files
committed
Fix Qt6 compat. (obsolete Qt regexp classes)
1 parent 40c41b5 commit c1552e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plotpy/widgets/colormap/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def __init__(self, parent: QW.QWidget | None = None, name: str = "") -> None:
6161

6262
label = QW.QLabel(_("Enter a colormap name:"))
6363
self._edit = QW.QLineEdit()
64-
self._edit.setValidator(QG.QRegExpValidator(QC.QRegExp("[1-9a-zA-Z_]*")))
64+
regexp = QC.QRegularExpression("[1-9a-zA-Z_]*")
65+
self._edit.setValidator(QG.QRegularExpressionValidator(regexp))
6566
self._edit.setText(name)
6667
self._edit.setToolTip(
6768
_(

0 commit comments

Comments
 (0)