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

Use lineeditvalidator

parent dc4ddae4
......@@ -23,6 +23,7 @@
#include "commonwidgets/sievehelpbutton.h"
#include "autocreatescripts/autocreatescriptutil_p.h"
#include "editor/sieveeditorutil.h"
#include "widgets/lineeditvalidator.h"
#include <QPushButton>
#include <KLocalizedString>
......@@ -147,7 +148,7 @@ void SieveIncludeActionWidget::initWidget()
lab = new QLabel(i18n("Name:"));
mLayout->addWidget(lab, 1, 2);
mIncludeName = new KLineEdit(this);
mIncludeName = new LineEditValidator(this);
mIncludeName->setClearButtonEnabled(true);
connect(mIncludeName, &QLineEdit::textChanged, this, &SieveIncludeActionWidget::valueChanged);
mLayout->addWidget(mIncludeName, 1, 3);
......
......@@ -78,7 +78,7 @@ private:
QCheckBox *mOptional;
QCheckBox *mOnce;
SieveIncludeLocation *mLocation;
KLineEdit *mIncludeName;
QLineEdit *mIncludeName;
};
class SieveIncludeWidgetLister : public KPIM::KWidgetLister
......
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