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

Start to implement search diacritic

parent 1fa583d9
Pipeline #138883 passed with stages
in 3 minutes and 29 seconds
......@@ -15,7 +15,7 @@
#include <QRegularExpression>
using namespace KPIMTextEdit;
// #define SEARCH_DIACRITIC_WORD 1
class KPIMTextEdit::PlainTextEditFindBarPrivate
{
public:
......@@ -53,7 +53,11 @@ bool PlainTextEditFindBar::documentIsEmpty() const
bool PlainTextEditFindBar::searchInDocument(const QString &text, QTextDocument::FindFlags searchOptions)
{
#ifdef SEARCH_DIACRITIC_WORD
const bool found = d->mView->find(FindUtils::normalize(text), searchOptions);
#else
const bool found = d->mView->find(text, searchOptions);
#endif
mFindWidget->setFoundMatch(found);
return found;
}
......
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