diff options
Diffstat (limited to 'components/package/contents/ui/Icon.qml')
-rw-r--r-- | components/package/contents/ui/Icon.qml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/components/package/contents/ui/Icon.qml b/components/package/contents/ui/Icon.qml index dfddfa6a..74a4971a 100644 --- a/components/package/contents/ui/Icon.qml +++ b/components/package/contents/ui/Icon.qml | |||
@@ -29,16 +29,10 @@ Item { | |||
29 | height: implicitHeight | 29 | height: implicitHeight |
30 | 30 | ||
31 | onIconNameChanged: setImageSource() | 31 | onIconNameChanged: setImageSource() |
32 | onIconSourceChanged: setImageSource() | ||
33 | 32 | ||
34 | function setImageSource() { | 33 | function setImageSource() { |
35 | // Icon names have precedence over icon URLs | 34 | if (root.iconName != "") |
36 | if (root.iconName.indexOf("/") != -1) | ||
37 | image.source = root.iconName; | ||
38 | else if (root.iconName != "") | ||
39 | image.source = "image://kube/" + root.iconName; | 35 | image.source = "image://kube/" + root.iconName; |
40 | else if (root.iconSource != "") | ||
41 | image.source = root.iconSource; | ||
42 | else | 36 | else |
43 | image.source = ""; | 37 | image.source = ""; |
44 | } | 38 | } |