look also in toolbar-icons

This commit is contained in:
Marco Martin 2011-11-17 22:06:09 +01:00
parent 3734ab5658
commit 15fafe6c29

View File

@ -34,7 +34,11 @@ Item {
valid = false
}
svgIcon.imagePath = "icons/"+root.source.split("-")[0]
svgIcon.imagePath = "toolbar-icons/"+root.source.split("-")[0]
if (!svgIcon.isValid() || !svgIcon.hasElement(root.source)) {
svgIcon.imagePath = "icons/"+root.source.split("-")[0]
}
if (svgIcon.isValid() && svgIcon.hasElement(root.source)) {
imageLoader.sourceComponent = svgComponent
} else if (root.source.indexOf(".") == -1 && root.source.indexOf(":") == -1) {