Implement class for handling filesystem paths

PR #15915.
This commit is contained in:
Vladimir Golovnev
2022-02-08 06:03:48 +03:00
committed by GitHub
parent facfa26eed
commit dd1bd8ad10
131 changed files with 2252 additions and 1868 deletions

View File

@@ -392,7 +392,7 @@ QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, cons
case TR_TIME_ELAPSED:
return timeElapsedString(torrent->activeTime(), torrent->finishedTime());
case TR_SAVE_PATH:
return Utils::Fs::toNativePath(torrent->savePath());
return torrent->savePath().toString();
case TR_COMPLETED:
return unitString(torrent->completedSize());
case TR_SEEN_COMPLETE_DATE:
@@ -461,7 +461,7 @@ QVariant TransferListModel::internalValue(const BitTorrent::Torrent *torrent, co
case TR_TIME_ELAPSED:
return !alt ? torrent->activeTime() : torrent->finishedTime();
case TR_SAVE_PATH:
return Utils::Fs::toNativePath(torrent->savePath());
return torrent->savePath().toString();
case TR_COMPLETED:
return torrent->completedSize();
case TR_RATIO_LIMIT: