Commit 2bb6ad41 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlJSInterpreter: specifying detailed types for QFont/QVector3D

We should differentiate between int and real

Reviewed-by:  Christian Kamm
parent 1e86df71
......@@ -3163,10 +3163,10 @@ void Engine::initializePrototypes()
_qmlFontObject->setProperty("underline", booleanValue());
_qmlFontObject->setProperty("overline", booleanValue());
_qmlFontObject->setProperty("strikeout", booleanValue());
_qmlFontObject->setProperty("pointSize", numberValue());
_qmlFontObject->setProperty("pixelSize", numberValue());
_qmlFontObject->setProperty("letterSpacing", numberValue());
_qmlFontObject->setProperty("wordSpacing", numberValue());
_qmlFontObject->setProperty("pointSize", intValue());
_qmlFontObject->setProperty("pixelSize", intValue());
_qmlFontObject->setProperty("letterSpacing", realValue());
_qmlFontObject->setProperty("wordSpacing", realValue());
_qmlPointObject = newObject(/*prototype =*/ 0);
_qmlPointObject->setClassName(QLatin1String("Point"));
......@@ -3187,9 +3187,9 @@ void Engine::initializePrototypes()
_qmlVector3DObject = newObject(/*prototype =*/ 0);
_qmlVector3DObject->setClassName(QLatin1String("Vector3D"));
_qmlVector3DObject->setProperty("x", numberValue());
_qmlVector3DObject->setProperty("y", numberValue());
_qmlVector3DObject->setProperty("z", numberValue());
_qmlVector3DObject->setProperty("x", realValue());
_qmlVector3DObject->setProperty("y", realValue());
_qmlVector3DObject->setProperty("z", realValue());
}
const ObjectValue *Engine::qmlKeysObject()
......
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