Commit f6cb44a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use new LineEditCatchReturnKey

parent e2bb0bcf
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "ldapclientsearchconfig.h" #include "ldapclientsearchconfig.h"
#include "widgets/progressindicatorlabel.h" #include "widgets/progressindicatorlabel.h"
#include "misc/lineeditcatchreturnkey.h"
#include <QPair> #include <QPair>
#include <QApplication> #include <QApplication>
...@@ -44,7 +45,7 @@ ...@@ -44,7 +45,7 @@
#include <QMenu> #include <QMenu>
#include <QClipboard> #include <QClipboard>
#include <KLineEdit> #include <QLineEdit>
#include <QComboBox> #include <QComboBox>
#include <KConfig> #include <KConfig>
#include <KConfigGroup> #include <KConfigGroup>
...@@ -52,7 +53,6 @@ ...@@ -52,7 +53,6 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <kldap/ldapobject.h> #include <kldap/ldapobject.h>
#include <kldap/ldapserver.h> #include <kldap/ldapserver.h>
#include <QLineEdit>
#include <KMessageBox> #include <KMessageBox>
#include <QLocale> #include <QLocale>
...@@ -475,7 +475,7 @@ public: ...@@ -475,7 +475,7 @@ public:
ContactListModel *mModel = nullptr; ContactListModel *mModel = nullptr;
KPIM::ProgressIndicatorLabel *progressIndication = nullptr; KPIM::ProgressIndicatorLabel *progressIndication = nullptr;
QSortFilterProxyModel *sortproxy = nullptr; QSortFilterProxyModel *sortproxy = nullptr;
KLineEdit *searchLine = nullptr; QLineEdit *searchLine = nullptr;
QPushButton *user1Button = nullptr; QPushButton *user1Button = nullptr;
}; };
...@@ -558,8 +558,8 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent) ...@@ -558,8 +558,8 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
QHBoxLayout *quickSearchLineLayout = new QHBoxLayout; QHBoxLayout *quickSearchLineLayout = new QHBoxLayout;
quickSearchLineLayout->addStretch(); quickSearchLineLayout->addStretch();
d->searchLine = new KLineEdit; d->searchLine = new QLineEdit;
d->searchLine->setTrapReturnKey(true); new KPIM::LineEditCatchReturnKey(d->searchLine, this);
d->searchLine->setClearButtonEnabled(true); d->searchLine->setClearButtonEnabled(true);
d->searchLine->setPlaceholderText(i18n("Search in result")); d->searchLine->setPlaceholderText(i18n("Search in result"));
quickSearchLineLayout->addWidget(d->searchLine); quickSearchLineLayout->addWidget(d->searchLine);
......
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