Skip to content

Commit c36c7eb

Browse files
committed
Altered the iconcharcode convertation
1 parent f2df2c2 commit c36c7eb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

inspectors/view/qml/common/StyledIconLabel.qml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ Text {
2222
text: iconCharCode(iconCode)
2323

2424
function iconCharCode(code) {
25+
var result = 0
26+
2527
switch (code) {
26-
case IconNameTypes.AUTO: return "AUTO";
27-
case IconNameTypes.NONE: return "NONE";
28-
case IconNameTypes.CUSTOM: return "Custom";
29-
default: return String.fromCharCode(code)
28+
case IconNameTypes.AUTO: result = "AUTO"; break
29+
case IconNameTypes.NONE: result = "NONE"; break
30+
case IconNameTypes.CUSTOM: result = "Custom"; break
31+
default: result = String.fromCharCode(code); break
3032
}
33+
34+
return result
3135
}
3236
}

0 commit comments

Comments
 (0)