From 1de24676bb80ce633a026f336242d486b40dd3c8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 3 Sep 2025 18:55:05 +1000 Subject: internal: refactor Paths util --- components/filedialog/FolderContents.qml | 2 +- components/images/CachingIconImage.qml | 2 +- components/images/CachingImage.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/filedialog/FolderContents.qml b/components/filedialog/FolderContents.qml index 7765a6a..3efa697 100644 --- a/components/filedialog/FolderContents.qml +++ b/components/filedialog/FolderContents.qml @@ -97,7 +97,7 @@ Item { model: FileSystemModel { path: { if (root.dialog.cwd[0] === "Home") - return `${Paths.strip(Paths.home)}/${root.dialog.cwd.slice(1).join("/")}`; + return `${Paths.home}/${root.dialog.cwd.slice(1).join("/")}`; else return root.dialog.cwd.join("/"); } diff --git a/components/images/CachingIconImage.qml b/components/images/CachingIconImage.qml index 715d379..1acc6a1 100644 --- a/components/images/CachingIconImage.qml +++ b/components/images/CachingIconImage.qml @@ -26,7 +26,7 @@ Item { id: cachingImage CachingImage { - path: Paths.strip(root.source) + path: Paths.toLocalFile(root.source) fillMode: Image.PreserveAspectFit } } diff --git a/components/images/CachingImage.qml b/components/images/CachingImage.qml index a8916ae..3511345 100644 --- a/components/images/CachingImage.qml +++ b/components/images/CachingImage.qml @@ -23,6 +23,6 @@ Image { id: manager item: root - cacheDir: Paths.imagecache + cacheDir: Qt.resolvedUrl(Paths.imagecache) } } -- cgit v1.2.3-freya