Rename "fromNativePath" to "toUniformPath"

Unlike "toNativePath" which name clearly reflects the function result
"fromNativePath" has no such clear meaning.
Since this function converts path into uniform format "toUniformPath"
is better name.
This commit is contained in:
Vladimir Golovnev (Glassez) 2019-06-16 20:14:15 +03:00
parent 206bb018dd
commit 8e65317d61
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
17 changed files with 54 additions and 47 deletions

View file

@ -308,13 +308,13 @@ void AppController::setPreferencesAction()
QVariantHash scanDirs;
ScanFoldersModel *model = ScanFoldersModel::instance();
for (auto i = nativeDirs.cbegin(); i != nativeDirs.cend(); ++i) {
QString folder = Utils::Fs::fromNativePath(i.key());
QString folder = Utils::Fs::toUniformPath(i.key());
int downloadType;
QString downloadPath;
ScanFoldersModel::PathStatus ec;
if (i.value().type() == QVariant::String) {
downloadType = ScanFoldersModel::CUSTOM_LOCATION;
downloadPath = Utils::Fs::fromNativePath(i.value().toString());
downloadPath = Utils::Fs::toUniformPath(i.value().toString());
}
else {
downloadType = i.value().toInt();