Commit 8f761f42 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

parent ee05b1c0
......@@ -89,7 +89,7 @@ public:
for (QWidget *it : list) {
if (allowedTypes.contains(QLatin1String(it->metaObject()->className()))) {
const QString name = it->objectName();
if (name.startsWith(QStringLiteral("X_"))) {
if (name.startsWith(QLatin1String("X_"))) {
new QTreeWidgetItem(this, QStringList()
<< name
<< allowedTypes[ QLatin1String(it->metaObject()->
......@@ -470,7 +470,7 @@ void KCMDesignerFields::startDesigner()
void KCMDesignerFields::showWhatsThis(const QString &href)
{
if (href.startsWith(QStringLiteral("whatsthis:"))) {
if (href.startsWith(QLatin1String("whatsthis:"))) {
QPoint pos = QCursor::pos();
QWhatsThis::showText(pos, href.mid(10), this);
}
......
......@@ -121,8 +121,8 @@ QList<StyledCalendarDelegate::Action> StyledCalendarDelegate::getActions(
Qt::CheckState enabled = static_cast<Qt::CheckState>(index.data(EnabledRole).toInt());
// qCDebug(KORGANIZER_LOG) << index.data().toString() << enabled;
const bool isSearchCollection
= col.resource().startsWith(QStringLiteral("akonadi_search_resource"));
const bool isKolabCollection = col.resource().startsWith(QStringLiteral(
= col.resource().startsWith(QLatin1String("akonadi_search_resource"));
const bool isKolabCollection = col.resource().startsWith(QLatin1String(
"akonadi_kolab_resource"));
const bool isTopLevelCollection = (col.parentCollection() == Akonadi::Collection::root());
const bool isToplevelSearchCollection = (isTopLevelCollection && isSearchCollection);
......
......@@ -61,7 +61,7 @@ public:
bool isValid(const QString &incidenceIdentifier) const override
{
return incidenceIdentifier.startsWith(QStringLiteral("fb-"));
return incidenceIdentifier.startsWith(QLatin1String("fb-"));
}
QString displayName(const KCalCore::Incidence::Ptr &incidence) const override
......
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