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

Use PimCommon::EmailValidator here too

parent 6489ce27
Pipeline #23825 passed with stage
in 11 minutes and 17 seconds
......@@ -34,7 +34,7 @@
#include <QShortcut>
#include <Libkdepim/LineEditCatchReturnKey>
#include <Libkdepim/EmailValidator>
#include <PimCommon/EmailValidator>
using namespace PimCommon;
RecentAddressWidget::RecentAddressWidget(QWidget *parent)
......@@ -50,7 +50,7 @@ RecentAddressWidget::RecentAddressWidget(QWidget *parent)
new KPIM::LineEditCatchReturnKey(mLineEdit, this);
mLineEdit->installEventFilter(this);
mLineEdit->setClearButtonEnabled(true);
KPIM::EmailValidator *emailValidator = new KPIM::EmailValidator(this);
PimCommon::EmailValidator *emailValidator = new PimCommon::EmailValidator(this);
mLineEdit->setValidator(emailValidator);
connect(mLineEdit, &QLineEdit::returnPressed, this, &RecentAddressWidget::slotAddItem);
......
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