diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-11-10 09:08:04 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-11-10 09:08:04 +0100 |
| commit | 02c08351489ed7b649e6409bf529773bab5136d8 (patch) | |
| tree | 5a87f5c4f30154648d3f1df3bbd32b4ff085d66f /src/search | |
| parent | d0f0f1f2e2644e3738c03374d062dab9acc61eaf (diff) | |
KLineEdit to QLineEdit
Diffstat (limited to 'src/search')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 65d35539c..fe298312f 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -23,7 +23,7 @@ #include "dolphinfacetswidget.h" #include <QIcon> -#include <KLineEdit> +#include <QLineEdit> #include <KLocalizedString> #include <KSeparator> @@ -346,13 +346,13 @@ void DolphinSearchBox::init() connect(m_searchInput, &Baloo::QueryBuilder::textChanged, this, &DolphinSearchBox::slotSearchTextChanged); #else - m_searchInput = new KLineEdit(this); + m_searchInput = new QLineEdit(this); m_searchInput->installEventFilter(this); - m_searchInput->setClearButtonShown(true); + m_searchInput->setClearButtonEnabled(true); m_searchInput->setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont)); - connect(m_searchInput, &KLineEdit::returnPressed, + connect(m_searchInput, &QLineEdit::returnPressed, this, &DolphinSearchBox::slotReturnPressed); - connect(m_searchInput, &KLineEdit::textChanged, + connect(m_searchInput, &QLineEdit::textChanged, this, &DolphinSearchBox::slotSearchTextChanged); #endif setFocusProxy(m_searchInput); |
