Commit 212297ce authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QLatin1Char('/') here

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