Commit f47135c9 authored by Christian Kamm's avatar Christian Kamm
Browse files

QmlJS: Fix code model for QSize and QSizeF.

Means their members are now completed correctly.

Task-number: QTCREATORBUG-1132
Reviewed-by: Erik Verbruggen
parent 7289fbfe
......@@ -803,6 +803,14 @@ const Value *QmlObjectValue::propertyValue(const FakeMetaProperty &prop) const
object->setProperty("x", engine()->numberValue());
object->setProperty("y", engine()->numberValue());
value = object;
} else if (typeName == QLatin1String("QSize")
|| typeName == QLatin1String("QSizeF")) {
// ### cache
ObjectValue *object = engine()->newObject(/*prototype =*/ 0);
object->setClassName(QLatin1String("Size"));
object->setProperty("width", engine()->numberValue());
object->setProperty("height", engine()->numberValue());
value = object;
} else if (typeName == QLatin1String("QRect")
|| typeName == QLatin1String("QRectF")) {
// ### cache
......
Supports Markdown
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