Commit 90069398 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

(cherry picked from commit 212297ce)
parent e24aec98
......@@ -40,7 +40,7 @@ GrantleePrintStyle::GrantleePrintStyle(const QString &themePath, PrintingWizard
, m_themePath(themePath)
{
QFile previewFile(QString(themePath + QDir::separator() + QStringLiteral("preview.png")));
QFile previewFile(QString(themePath + QStringLiteral("/preview.png")));
if (previewFile.exists()) {
setPreview(previewFile.fileName());
}
......
......@@ -133,7 +133,7 @@ void PrintingWizard::loadGrantleeStyle()
QStringList alreadyLoadedThemeName;
while (dirIt.hasNext()) {
dirIt.next();
const QString themeInfoFile = dirIt.filePath() + QDir::separator() + QStringLiteral("theme.desktop");
const QString themeInfoFile = dirIt.filePath() + QStringLiteral("/theme.desktop");
KConfig config(themeInfoFile);
KConfigGroup group(&config, QStringLiteral("Desktop Entry"));
QString name = group.readEntry("Name", QString());
......@@ -148,7 +148,7 @@ void PrintingWizard::loadGrantleeStyle()
++i;
}
}
const QString printThemePath(dirIt.filePath() + QDir::separator());
const QString printThemePath(dirIt.filePath() + QLatin1Char('/'));
if (!printThemePath.isEmpty()) {
alreadyLoadedThemeName << name;
mPrintStyleDefinition.append(new PrintStyleDefinition(new GrantleeStyleFactory(name, printThemePath, this)));
......
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