Commit 302e93d6 authored by Leandro Melo's avatar Leandro Melo
Browse files

QmlJS: Set type correctly for color properties.

Done-with: ckamm
parent 713e4c26
......@@ -2877,6 +2877,8 @@ const Value *Engine::defaultValueForBuiltinType(const QString &typeName) const
return booleanValue();
else if (typeName == QLatin1String("int") || typeName == QLatin1String("real"))
return numberValue();
else if (typeName == QLatin1String("color"))
return colorValue();
// ### more types...
return undefinedValue();
......
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