summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-07-11 22:40:26 +0200
committerMontel Laurent <[email protected]>2017-07-11 22:40:26 +0200
commitd309568eea7f18e17495f7b77a5a1808dd6d0415 (patch)
tree438697dc59d3faa8ae2e5f6fafa7a74342acf7a0
parent43a17668bd6c2472b217ea5e9ac568a8c1c75336 (diff)
USe LineEditValidator here too
-rw-r--r--src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp b/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
index 785a3d2..5498563 100644
--- a/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
+++ b/src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
@@ -26,6 +26,7 @@
#include <KLocalizedString>
#include <QLineEdit>
+#include "widgets/lineeditvalidator.h"
#include <QHBoxLayout>
#include <QLabel>
@@ -55,7 +56,7 @@ SieveForEveryPartWidget::SieveForEveryPartWidget(QWidget *parent)
QLabel *lab = new QLabel(i18n("Name (optional):"));
lay->addWidget(lab);
- mName = new QLineEdit;
+ mName = new LineEditValidator;
connect(mName, &QLineEdit::textChanged, this, &SieveForEveryPartWidget::valueChanged);
mName->setEnabled(false);
lay->addWidget(mName);