Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2c3b61db authored by Laurent Montel's avatar Laurent Montel 😁

Use LineEditWithCompleterNg

parent e80f92bd
......@@ -32,7 +32,7 @@ set(KMIME_LIB_VERSION "5.6.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.6.40")
set(LIBKDEPIM_LIB_VERSION "5.6.40")
set(LIBKLEO_LIB_VERSION "5.6.40")
set(PIMCOMMON_LIB_VERSION "5.6.40")
set(PIMCOMMON_LIB_VERSION "5.6.41")
set(GPGME_LIB_VERSION "1.8.0")
set(AKONADI_CONTACT_VERSION "5.6.40")
......
......@@ -16,7 +16,7 @@
* Boston, MA 02110-1301, USA.
*/
#include "findbarsourceview.h"
#include "PimCommon/LineEditWithCompleter"
#include <PimCommon/LineEditWithCompleterNg>
#include <QPlainTextEdit>
#include <QAction>
......
......@@ -18,7 +18,7 @@
*/
#include "findbarbase.h"
#include "PimCommon/LineEditWithCompleter"
#include <PimCommon/LineEditWithCompleterNg>
#include <qicon.h>
#include <KLocalizedString>
......@@ -58,10 +58,10 @@ FindBarBase::FindBarBase(QWidget *parent)
QLabel *label = new QLabel(i18nc("Find text", "F&ind:"), this);
lay->addWidget(label);
mSearch = new PimCommon::LineEditWithCompleter(this);
mSearch = new PimCommon::LineEditWithCompleterNg(this);
mSearch->setObjectName(QStringLiteral("searchline"));
mSearch->setToolTip(i18n("Text to search for"));
mSearch->setClearButtonShown(true);
mSearch->setClearButtonEnabled(true);
label->setBuddy(mSearch);
lay->addWidget(mSearch);
......@@ -91,8 +91,7 @@ FindBarBase::FindBarBase(QWidget *parent)
connect(mFindNextBtn, &QPushButton::clicked, this, &FindBarBase::findNext);
connect(mFindPrevBtn, &QPushButton::clicked, this, &FindBarBase::findPrev);
connect(mCaseSensitiveAct, &QAction::toggled, this, &FindBarBase::caseSensitivityChanged);
connect(mSearch, &KLineEdit::textChanged, this, &FindBarBase::autoSearch);
connect(mSearch, &KLineEdit::clearButtonClicked, this, &FindBarBase::slotClearSearch);
connect(mSearch, &QLineEdit::textChanged, this, &FindBarBase::autoSearch);
mStatus = new QLabel;
mStatus->setObjectName(QStringLiteral("status"));
......@@ -189,8 +188,7 @@ void FindBarBase::searchText(bool backward, bool isAutoSearch)
void FindBarBase::addToCompletion(const QString &text)
{
KCompletion *comp = mSearch->completionObject();
comp->addItem(text);
mSearch->addCompletionItem(text);
}
void FindBarBase::findNext()
......
......@@ -28,7 +28,7 @@ class QMenu;
class QLabel;
namespace PimCommon
{
class LineEditWithCompleter;
class LineEditWithCompleterNg;
}
namespace WebEngineViewer
{
......@@ -73,7 +73,7 @@ protected:
QString mPositiveBackground;
QString mNegativeBackground;
QString mLastSearchStr;
PimCommon::LineEditWithCompleter *mSearch;
PimCommon::LineEditWithCompleterNg *mSearch;
QAction *mCaseSensitiveAct;
QPushButton *mFindPrevBtn;
......
......@@ -17,7 +17,7 @@
*/
#include "findbarwebengineview.h"
#include "PimCommon/LineEditWithCompleter"
#include <PimCommon/LineEditWithCompleterNg>
#include <QWebEngineView>
#include <QAction>
......
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