File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,14 @@ Item {
63
63
} else if (icon .source .indexOf (' icon://' ) === 0 ) {
64
64
var name = icon .source .substring (7 )
65
65
66
- if (name)
67
- return " qrc:/icons/" + name + ' .svg'
68
- else
66
+ if (name) {
67
+ if (Theme .iconsRoot .indexOf (' qrc' ) != - 1 )
68
+ return Theme .iconsRoot + ' /' + name + ' .svg'
69
+ else
70
+ return Theme .iconsRoot + ' /' + name .replace (' /' , ' _' ) + ' .svg'
71
+ } else {
69
72
return " "
73
+ }
70
74
} else {
71
75
return icon .source
72
76
}
Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ Object {
79
79
light: false
80
80
}
81
81
82
+ property string iconsRoot: " qrc:/icons"
83
+
82
84
/* !
83
85
A utility method for changing the alpha on colors. Returns a new object, and does not modify
84
86
the original color at all.
You can’t perform that action at this time.
0 commit comments