QmlJS: Set type correctly for color properties.

Done-with: ckamm
This commit is contained in:
Leandro Melo
2010-07-27 13:41:30 +02:00
parent 713e4c2621
commit 302e93d67f

View File

@@ -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();