Use QRegularExpression instead QRegExp.
--HG-- branch : develop
This commit is contained in:
parent
0485489b22
commit
d200548661
|
@ -127,7 +127,8 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QRegExpValidator *reg = new QRegExpValidator(QRegExp("\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"));
|
QRegularExpressionValidator *reg =
|
||||||
|
new QRegularExpressionValidator(QRegularExpression("\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*"));
|
||||||
ui->lineEditMail->setValidator(reg);
|
ui->lineEditMail->setValidator(reg);
|
||||||
|
|
||||||
HideColumns(ui->tableWidgetMeasurements);
|
HideColumns(ui->tableWidgetMeasurements);
|
||||||
|
|
|
@ -49,7 +49,7 @@ DialogSaveLayout::DialogSaveLayout(const QMap<QString, QString> &formates, int c
|
||||||
SCASSERT(bOk != nullptr);
|
SCASSERT(bOk != nullptr);
|
||||||
bOk->setEnabled(false);
|
bOk->setEnabled(false);
|
||||||
|
|
||||||
QRegExpValidator *validator = new QRegExpValidator(QRegExp("^[\\w\\-. ]+$"), this);
|
QRegularExpressionValidator *validator = new QRegularExpressionValidator(QRegularExpression("^[\\w\\-. ]+$"), this);
|
||||||
ui->lineEditFileName->setValidator(validator);
|
ui->lineEditFileName->setValidator(validator);
|
||||||
ui->lineEditFileName->setText(fileName+"_");
|
ui->lineEditFileName->setText(fileName+"_");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user