From d3490fee9d19bbf9436968f05a78f3a619ae8616 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 3 Apr 2017 11:16:19 +0200 Subject: Only allow iconName on icons --- components/package/contents/ui/Icon.qml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'components/package/contents') 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 { height: implicitHeight onIconNameChanged: setImageSource() - onIconSourceChanged: setImageSource() function setImageSource() { - // Icon names have precedence over icon URLs - if (root.iconName.indexOf("/") != -1) - image.source = root.iconName; - else if (root.iconName != "") + if (root.iconName != "") image.source = "image://kube/" + root.iconName; - else if (root.iconSource != "") - image.source = root.iconSource; else image.source = ""; } -- cgit v1.2.3