diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 22:45:15 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-04 22:45:15 +1000 |
| commit | c5381c5194adf97c240acb98eb4c4c950633b325 (patch) | |
| tree | 52b18eb1771ec6708c86f11d786684f03b8a7c48 /widgets/CachingIconImage.qml | |
| parent | dashboard: display correct temp units (diff) | |
| download | caelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.tar.gz caelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.tar.bz2 caelestia-shell-c5381c5194adf97c240acb98eb4c4c950633b325.zip | |
internal: refactor widgets folder
Split into subdirs and rename to components
Diffstat (limited to 'widgets/CachingIconImage.qml')
| -rw-r--r-- | widgets/CachingIconImage.qml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/widgets/CachingIconImage.qml b/widgets/CachingIconImage.qml deleted file mode 100644 index 522a947..0000000 --- a/widgets/CachingIconImage.qml +++ /dev/null @@ -1,31 +0,0 @@ -import QtQuick - -Item { - property alias asynchronous: image.asynchronous - property alias status: image.status - property alias mipmap: image.mipmap - property alias backer: image - - property real implicitSize - readonly property real actualSize: Math.min(width, height) - - property url source - - onSourceChanged: { - if (source?.toString().startsWith("image://icon/")) - // Directly skip the path prop and treat like a normal Image component - image.source = source; - else if (source) - image.path = source; - } - - implicitWidth: implicitSize - implicitHeight: implicitSize - - CachingImage { - id: image - - anchors.fill: parent - fillMode: Image.PreserveAspectFit - } -} |