Commit f078f817 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.PropertyEditor: Remove string helper function

We use C++ helper functions instead.

Change-Id: I03ef168f4e47a6e2437676d906072e5f5ce7377c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent d6b12213
......@@ -55,23 +55,7 @@ Item {
gradientModel.deleteGradient()
}
function dec2hex(integer) {
var string = Math.round(integer).toString(16)
if (integer < 16) {
string = "0" + string
}
return string;
}
function colorToString(color) {
var string = "#"
if (color.a < 1)
string += dec2hex(color.a * 255)
string += dec2hex(color.r * 255)
string += dec2hex(color.g * 255)
string += dec2hex(color.b * 255)
return string;
}
Item {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment