Gui: replace QRegExp with QRegularExpression

This commit is contained in:
wmayer
2022-10-08 13:32:50 +02:00
parent 55a8b5917c
commit 3867897edd
3 changed files with 4 additions and 5 deletions

View File

@@ -48,8 +48,8 @@ DlgCreateNewPreferencePackImp::DlgCreateNewPreferencePackImp(QWidget* parent)
{
ui->setupUi(this);
QRegExp validNames(QString::fromUtf8("[^/\\\\?%*:|\"<>]+"));
_nameValidator.setRegExp(validNames);
QRegularExpression validNames(QString::fromUtf8("[^/\\\\?%*:|\"<>]+"));
_nameValidator.setRegularExpression(validNames);
ui->lineEdit->setValidator(&_nameValidator);
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
connect(ui->treeWidget, &QTreeWidget::itemChanged, this, &DlgCreateNewPreferencePackImp::onItemChanged);