From 302e93d67fc80234bab6c5f93de97687c8952f14 Mon Sep 17 00:00:00 2001 From: Leandro Melo <leandro.melo@nokia.com> Date: Tue, 27 Jul 2010 13:41:30 +0200 Subject: [PATCH] QmlJS: Set type correctly for color properties. Done-with: ckamm --- src/libs/qmljs/qmljsinterpreter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/qmljs/qmljsinterpreter.cpp b/src/libs/qmljs/qmljsinterpreter.cpp index 8713b76c443..16234d6dc1e 100644 --- a/src/libs/qmljs/qmljsinterpreter.cpp +++ b/src/libs/qmljs/qmljsinterpreter.cpp @@ -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(); -- GitLab