Utils: Introduce FilePath::displayName()

To produce "<filepath> on <devicename>" which is nicer to read than
"<scheme>://<deviceid>/<filepath>" in some places.

Change-Id: Ife47bbf49382cf73dd4709d826bdeaa8730f88be
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2022-06-02 17:05:46 +02:00
parent 51aae3bb1f
commit 31f0ba4ef9
7 changed files with 39 additions and 2 deletions

View File

@@ -175,6 +175,7 @@ public:
// on Windows and macOS. This is rarely needed.
[[nodiscard]] FilePath normalizedPathName() const;
QString displayName(const QString &args = {}) const;
QString nativePath() const;
QString shortNativePath() const;
bool startsWithDriveLetter() const;