Commit dce01e1f authored by Laurent Montel's avatar Laurent Montel 😁

Port to QRegularExpression*

parent 7b9b49a1
......@@ -25,6 +25,7 @@
#include <KTimeComboBox>
#include <QSpinBox>
#include <QLineEdit>
#include <QRegularExpressionValidator>
#include <kpimtextedit/plaintexteditorwidget.h>
#include "libksieve_debug.h"
......@@ -209,7 +210,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mDomainEdit->setObjectName(QStringLiteral("mDomainEdit"));
mDomainEdit->setClearButtonEnabled(true);
mDomainEdit->setEnabled(false);
mDomainEdit->setValidator(new QRegExpValidator(QRegExp(QLatin1String("[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*")), mDomainEdit));
mDomainEdit->setValidator(new QRegularExpressionValidator(QRegularExpression(QStringLiteral("[a-zA-Z0-9+-]+(?:\\.[a-zA-Z0-9+-]+)*")), mDomainEdit));
glay->addWidget(mDomainCheck, row, 0);
glay->addWidget(mDomainEdit, row, 1);
connect(mDomainCheck, &QCheckBox::toggled, mDomainEdit, &QLineEdit::setEnabled);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment