summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-02-03 10:06:11 +0100
committerLaurent Montel <[email protected]>2018-02-03 10:06:22 +0100
commit1df35483315b8ca1f549aae8c5f4ba6da4ff53c2 (patch)
treeef13fb21b8359b30eab2d113a258b8704dd2b70a
parentcd97358ca25b2665e016ab4d166d0fcf280c665d (diff)
Use QLatin1String
-rw-r--r--src/filter/mailfilter.cpp10
-rw-r--r--src/search/searchpatternedit.cpp12
2 files changed, 11 insertions, 11 deletions
diff --git a/src/filter/mailfilter.cpp b/src/filter/mailfilter.cpp
index db76b61..1a1f0c6 100644
--- a/src/filter/mailfilter.cpp
+++ b/src/filter/mailfilter.cpp
@@ -540,19 +540,19 @@ void MailFilter::writeConfig(KConfigGroup &config, bool exportFilter) const
QStringList sets;
if (bApplyOnInbound) {
- sets.append(QStringLiteral("check-mail"));
+ sets.append(QLatin1String("check-mail"));
}
if (bApplyBeforeOutbound) {
- sets.append(QStringLiteral("before-send-mail"));
+ sets.append(QLatin1String("before-send-mail"));
}
if (bApplyOnOutbound) {
- sets.append(QStringLiteral("send-mail"));
+ sets.append(QLatin1String("send-mail"));
}
if (bApplyOnExplicit) {
- sets.append(QStringLiteral("manual-filtering"));
+ sets.append(QLatin1String("manual-filtering"));
}
if (bApplyOnAllFolders) {
- sets.append(QStringLiteral("all-folders"));
+ sets.append(QLatin1String("all-folders"));
}
config.writeEntry("apply-on", sets);
diff --git a/src/search/searchpatternedit.cpp b/src/search/searchpatternedit.cpp
index a753c5f..9fd63cb 100644
--- a/src/search/searchpatternedit.cpp
+++ b/src/search/searchpatternedit.cpp
@@ -396,12 +396,12 @@ void SearchRuleWidget::initFieldList(SearchPatternEdit::SearchPatternEditOptions
// these others only represent message headers and you can add to
// them as you like
- mFilterFieldList.append(QStringLiteral("List-Id"));
- mFilterFieldList.append(QStringLiteral("Resent-From"));
- mFilterFieldList.append(QStringLiteral("X-Loop"));
- mFilterFieldList.append(QStringLiteral("X-Mailing-List"));
- mFilterFieldList.append(QStringLiteral("X-Spam-Flag"));
- mFilterFieldList.append(QStringLiteral("X-Spam-Status"));
+ mFilterFieldList.append(QLatin1String("List-Id"));
+ mFilterFieldList.append(QLatin1String("Resent-From"));
+ mFilterFieldList.append(QLatin1String("X-Loop"));
+ mFilterFieldList.append(QLatin1String("X-Mailing-List"));
+ mFilterFieldList.append(QLatin1String("X-Spam-Flag"));
+ mFilterFieldList.append(QLatin1String("X-Spam-Status"));
}
void SearchRuleWidget::slotRuleFieldChanged(const QString &field)