mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
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:
@@ -201,7 +201,7 @@ FileSystemPathEdit::~FileSystemPathEdit()
|
||||
|
||||
QString FileSystemPathEdit::selectedPath() const
|
||||
{
|
||||
return Utils::Fs::fromNativePath(editWidgetText());
|
||||
return Utils::Fs::toUniformPath(editWidgetText());
|
||||
}
|
||||
|
||||
void FileSystemPathEdit::setSelectedPath(const QString &val)
|
||||
@@ -347,7 +347,7 @@ int FileSystemPathComboEdit::count() const
|
||||
|
||||
QString FileSystemPathComboEdit::item(int index) const
|
||||
{
|
||||
return Utils::Fs::fromNativePath(editWidget<WidgetType>()->itemText(index));
|
||||
return Utils::Fs::toUniformPath(editWidget<WidgetType>()->itemText(index));
|
||||
}
|
||||
|
||||
void FileSystemPathComboEdit::addItem(const QString &text)
|
||||
|
||||
Reference in New Issue
Block a user