Commit e6641b3d authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent 03f3b2bb
......@@ -385,7 +385,7 @@ protected:
= col.attribute<Akonadi::CollectionIdentificationAttribute>();
//We filter the user folders because we insert person nodes for user folders.
if ((attr && attr->collectionNamespace().startsWith("usertoplevel"))
|| col.name().contains(QStringLiteral("Other Users"))) {
|| col.name().contains(QLatin1String("Other Users"))) {
return false;
}
return true;
......
......@@ -164,9 +164,9 @@ void ApptSummaryWidget::updateView()
// Icon label
label = new QLabel(this);
if (ev->categories().contains(QStringLiteral("BIRTHDAY"), Qt::CaseInsensitive)) {
if (ev->categories().contains(QLatin1String("BIRTHDAY"), Qt::CaseInsensitive)) {
label->setPixmap(pmb);
} else if (ev->categories().contains(QStringLiteral("ANNIVERSARY"), Qt::CaseInsensitive)) {
} else if (ev->categories().contains(QLatin1String("ANNIVERSARY"), Qt::CaseInsensitive)) {
label->setPixmap(pma);
} else {
label->setPixmap(pm);
......
......@@ -72,11 +72,11 @@ bool SummaryEventInfo::skip(const KCalCore::Event::Ptr &event)
//the appropriate category to the event.
QStringList c = event->categories();
if (!mShowBirthdays
&& c.contains(QStringLiteral("BIRTHDAY"), Qt::CaseInsensitive)) {
&& c.contains(QLatin1String("BIRTHDAY"), Qt::CaseInsensitive)) {
return true;
}
if (!mShowAnniversaries
&& c.contains(QStringLiteral("ANNIVERSARY"), Qt::CaseInsensitive)) {
&& c.contains(QLatin1String("ANNIVERSARY"), Qt::CaseInsensitive)) {
return true;
}
......
......@@ -394,9 +394,9 @@ void SDSummaryWidget::createLabels()
for (; it != holidays.constEnd(); ++it) {
SDEntry entry;
entry.type = IncidenceTypeEvent;
if ((*it).categoryList().contains(QStringLiteral("seasonal"))) {
if ((*it).categoryList().contains(QLatin1String("seasonal"))) {
entry.category = CategorySeasonal;
} else if ((*it).categoryList().contains(QStringLiteral("public"))) {
} else if ((*it).categoryList().contains(QLatin1String("public"))) {
entry.category = CategoryHoliday;
} else {
entry.category = CategoryOther;
......
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