Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
302e93d6
Commit
302e93d6
authored
Jul 27, 2010
by
Leandro Melo
Browse files
QmlJS: Set type correctly for color properties.
Done-with: ckamm
parent
713e4c26
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljsinterpreter.cpp
View file @
302e93d6
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment