Commit 0e5a1eaa authored by Laurent Montel's avatar Laurent Montel 😁

Use QByteArrayLiteral

parent 0fc753f7
......@@ -4272,19 +4272,19 @@ void KMMainWidget::slotRequestFullSearchFromQuickSearch()
MessageList::Core::QuickSearchLine::SearchOptions options = mMessagePane->currentOptions();
QByteArray searchStringVal;
if (options & MessageList::Core::QuickSearchLine::SearchEveryWhere) {
searchStringVal = "<message>";
searchStringVal = QByteArrayLiteral("<message>");
} else if (options & MessageList::Core::QuickSearchLine::SearchAgainstSubject) {
searchStringVal = "subject";
searchStringVal = QByteArrayLiteral("subject");
} else if (options & MessageList::Core::QuickSearchLine::SearchAgainstBody) {
searchStringVal = "<body>";
searchStringVal = QByteArrayLiteral("<body>");
} else if (options & MessageList::Core::QuickSearchLine::SearchAgainstFrom) {
searchStringVal = "from";
searchStringVal = QByteArrayLiteral("from");
} else if (options & MessageList::Core::QuickSearchLine::SearchAgainstBcc) {
searchStringVal = "bcc";
searchStringVal = QByteArrayLiteral("bcc");
} else if (options & MessageList::Core::QuickSearchLine::SearchAgainstTo) {
searchStringVal = "to";
searchStringVal = QByteArrayLiteral("to");
} else {
searchStringVal = "<message>";
searchStringVal = QByteArrayLiteral("<message>");
}
pattern.append(SearchRule::createInstance(searchStringVal, SearchRule::FuncContains, searchString));
const QList<MessageStatus> statusList = mMessagePane->currentFilterStatus();
......
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