Commit 963f7f8c authored by Laurent Montel's avatar Laurent Montel 😁

USe QLatin1String

parent b4f3a883
......@@ -278,7 +278,7 @@ void Backend::dataUpdated(const QString &sourceName, const Plasma::DataEngine::D
KService::Ptr service = KService::serviceByStorageId(appName);
if (!service) {
appName.prepend(QStringLiteral("org.kde."));
appName.prepend(QLatin1String("org.kde."));
// HACK try to find a service with org.kde. notation
service = KService::serviceByStorageId(appName);
if (!service) {
......
......@@ -41,7 +41,7 @@ DirModel::DirModel(QObject *parent)
m_mimeTypes << "inode/directory";
foreach (const QMimeType &mime, mimeList) {
if (mime.name().startsWith(QStringLiteral("image/"))) {
if (mime.name().startsWith(QLatin1String("image/"))) {
m_mimeTypes << mime.name();
}
}
......
......@@ -131,9 +131,9 @@ QString LabelGenerator::displayLabel() const
}
if (m_rtl) {
label.prepend(QStringLiteral(" < "));
label.prepend(QLatin1String(" < "));
} else {
label.prepend(QStringLiteral(" > "));
label.prepend(QLatin1String(" > "));
}
}
......
......@@ -326,7 +326,7 @@ bool FolderSelectionWidget::shouldShowMountPoint(const QString& mountPoint)
// The user's home directory is forcibly added so we can ignore /home
// if /home actually contains the home direcory
if (mountPoint.startsWith(QStringLiteral("/home")) && QDir::homePath().startsWith(QStringLiteral("/home")))
if (mountPoint.startsWith(QLatin1String("/home")) && QDir::homePath().startsWith(QLatin1String("/home")))
return false;
return true;
......
......@@ -41,9 +41,9 @@ void writeExports()
const QString configPath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/" + exportFile;
QString script(QStringLiteral("# Generated script, do not edit\n"));
script.append(QStringLiteral("# Exports language-format specific env vars from startkde.\n"));
script.append(QStringLiteral("# This script has been generated from kcmshell5 formats.\n"));
script.append(QStringLiteral("# It will automatically be overwritten from there.\n"));
script.append(QLatin1String("# Exports language-format specific env vars from startkde.\n"));
script.append(QLatin1String("# This script has been generated from kcmshell5 formats.\n"));
script.append(QLatin1String("# It will automatically be overwritten from there.\n"));
KConfigGroup formatsConfig = KConfigGroup(KSharedConfig::openConfig(configFile), "Formats");
KConfigGroup languageConfig = KConfigGroup(KSharedConfig::openConfig(configFile), "Translations");
......
......@@ -446,7 +446,7 @@ void KGlobalShortcutsEditor::addCollection(
// Add to the component list
QStandardItem *item = new QStandardItem(pixmap, friendlyName);
if (id.endsWith(QStringLiteral(".desktop"))) {
if (id.endsWith(QLatin1String(".desktop"))) {
item->setData(i18n("Application Launchers"), KCategorizedSortFilterProxyModel::CategoryDisplayRole);
item->setData(0, KCategorizedSortFilterProxyModel::CategorySortRole);
} else {
......
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