Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24034 → Rev 24035

/trunk/Scribus/scribus/scpaths.cpp
574,7 → 574,7
QDir useFilesDirectory(applicationDataDir() + "plugins/");
if (createIfNotExists && !useFilesDirectory.exists())
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userDictDir(ScPaths::DictType dictType, bool createIfNotExists)
587,7 → 587,7
QDir useFilesDirectory(applicationDataDir() + "dicts/" + dictSuffix);
if (createIfNotExists && !useFilesDirectory.exists())
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userFontDir(bool createIfNotExists)
595,7 → 595,7
QDir useFilesDirectory(applicationDataDir() + "fonts/");
if (createIfNotExists && !useFilesDirectory.exists())
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userHelpFilesDir(bool createIfNotExists)
603,7 → 603,7
QDir useFilesDirectory(applicationDataDir() + "helpfiles/");
if (createIfNotExists && !useFilesDirectory.exists())
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userPaletteFilesDir(bool createIfNotExists)
614,7 → 614,7
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
useFilesDirectory.mkpath(useFilesDirectory.absolutePath() + "/locked");
}
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userTemplateDir(bool createIfNotExists)
624,7 → 624,7
QDir useFilesDirectory(PrefsManager::instance().appPrefs.pathPrefs.documentTemplates);
if (createIfNotExists && !useFilesDirectory.exists())
useFilesDirectory.mkpath(useFilesDirectory.absolutePath());
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::userDocumentDir()
644,7 → 644,7
useFilesDirectory.mkpath(useFilesDirectory.absolutePath() + "/main");
useFilesDirectory.mkpath(useFilesDirectory.absolutePath() + "/tmp");
}
return useFilesDirectory.absolutePath()+"/";
return useFilesDirectory.absolutePath() + "/";
}
 
QString ScPaths::tempFileDir()
668,7 → 668,7
QDir tempAppDirectory(applicationDataDir() + "temp/");
if (!tempAppDirectory.exists())
tempAppDirectory.mkpath(tempAppDirectory.absolutePath());
return tempAppDirectory.absolutePath()+"/";
return tempAppDirectory.absolutePath() + "/";
}
 
QString ScPaths::downloadDir()
676,7 → 676,7
QDir downloadDirectory(applicationDataDir() + "downloads/");
if (!downloadDirectory.exists())
downloadDirectory.mkpath(downloadDirectory.absolutePath());
return downloadDirectory.absolutePath()+"/";
return downloadDirectory.absolutePath() + "/";
}
 
QString ScPaths::windowsSpecialDir(int folder)